# Thread: Drawing a Line Graph in R

1. ## Drawing a Line Graph in R

While the question in itself isn't University standard, using the programming language R to do the question is, well I think so anyway

Will attach the .csv used in the code with this post.

Here is my code to draw the line graph in R, as far as I can see it should work, but it doesn't... any ideas?

Code:
earn <- read.table("ave-earn.csv",sep=",",header=T)
attach(earn)
plot(Quarter,Av,type="l",
ylab="Earnings", xlab="",
main="Average Earnings\n1994 to 2000",
axes=F,xlim=c(1,28))
axis(2)
axis(1,at=seq(1,28,4),labels=seq(1994,2000,1))
box()
detach(earn)
Hopefully some of you will have a little more idea about R than I do