[R] grid command
Paul Murrell
pm254 at medschl.cam.ac.uk
Wed Jun 30 12:17:58 CEST 1999
hi
>I'd like to know if there is a way to plot your stuff and have a grid on
>the plot, in which
>the grid falls exactly where it should, i.e. on the axis labels.
>E.g., if on x axis I have the labels -4,-2,0,2,4 and on y
>-1,-0.5,0,0.5,1
>the command grid(5,5) puts the grid out of place, just on 0 it falls
>right.
>Any hint?
does something like ...
abline(h=seq(-1,1,.5), v=seq(-4,4,2), lty=3)
... or possibly ...
abline(h=seq(-1,1,.5), v=seq(-4,4,2), col="gray80")
... do what you want ?
paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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