Beginner R

I have a data table on disk. I want to load it into R. R is using Unix-style paths even on Windows, so use forward-slashes no matter what platform you are on.

tz <- read.table("E:/time-hash/results.txt", header=FALSE)

Now I want to plot it with a basic scatter plot.


Now I want to plot a range of it – the first 100 samples, and limit the Y axis to the range 1.1 to 1.3.

plot(tz$V1, xlim=c(0,100), ylim=c(1.1,1,3))

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>