Re: [R] grid command

Paul Murrell (pm254@medschl.cam.ac.uk)
Wed, 30 Jun 1999 11:17:58 +0100

From: "Paul Murrell" <pm254@medschl.cam.ac.uk>
To: "Alessandro Magni" <magni@omega.ien.it>, <r-help@stat.math.ethz.ch>
Subject: Re: [R] grid command
Date: Wed, 30 Jun 1999 11:17:58 +0100

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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.