Posted On: Sunday, November 2, 2014 at 5:01 AM Last updated: Tuesday, November 4, 2014 at 4:06 PM
test<- read.table("test.dat", header=TRUE)
print(test) #prints the ASCII table.
x<- test$x #after the $ is the header title in the ASCII file
y<- test$y #after the $ is the header title in the ASCII file
plot(x, y, main="Test Graph", xlab="X", ylab="y", col="red", type="l", ) #main, xlab and ylab are the main graph, x and y axis labels respectively.