[R] axis() plot() - step

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Aug 23 14:43:56 CEST 2002



Nolwenn Le Meur wrote:
> 
> Hi,
> Stupid question I guess but I can't figure out how to have a span of 0.5
> instead of 1 in my graph.
> Actually, I want to create a plot with x(-2,2) and y(-2,2) and an step of
> 0.5 along the axis.
> Does somebody can help me ? Is it in par(), axis() or plot() that I have to
> add something ?


  plot(..., xlim = c(-2, 2), ylim = c(-2,2), xaxt = "n", yaxt = "n") 
  axis(1, at = seq(-2, 2, 0.5))  
  axis(2, at = seq(-2, 2, 0.5))

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list