Skip to content

help function axis

3 messages · aprendiz programa, John Kane, William Dunlap

#
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
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
#
axis(), like many of R's add-to-a-plot functions, does
not warn if you ask then to add things whose positions
are out of the bounds of the current plot.
Use par("usr") or draw the default axes (omit axes=FALSE in plot())
to see what the current bounds are.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com