help function axis
Well, first thing wrong is no data. See ?dput as a way to supply sample data
Other than that everything seems okay or at least
x<-1:6
plot(x,type="o",axes=FALSE,xlab="year",ylab="cases")
axis(1,at=1:6, lab=c("2000","2001","2002","2003","2004","2005"))
axis(2,0:9)
plots for me.
John Kane
Kingston ON Canada
-----Original Message-----
From: aprendizprogram at hotmail.com
Sent: Wed, 15 Aug 2012 21:59:13 +0300
To: r-help at r-project.org
Subject: [R] help function axis
Hello,
I'm trying plot a graph, but the x-axis is not appearing.What am I doing
wrong?
xx
2000 42001 72002 82003 92004 22005 1
x<-read.table("xx.txt", header=FALSE)
plot(x,type="o",axes=FALSE,xlab="year",ylab="cases")
axis(1,at=1:6, lab=c("2000","2001","2002","2003","2004","2005"))
axis(2,0:9)
Help me!
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!