[R] questions on adding reference line?
Gabor Grothendieck
ggrothendieck at gmail.com
Sun Nov 19 04:56:00 CET 2006
Try:
axis(1, 0.5, tick = TRUE)
On 11/18/06, zhijie zhang <epistat at gmail.com> wrote:
> Dear Ruser,
> I use abline() function to add the reference line successfully, but i
> can't display the values corresponding to the reference line on the x/y
> axis, anybody knows how to display it?
> *My simulated programs:*
> y<-rnorm(50)
> plot(x,y)
> abline(v=0.5) *#my question is how to display x=0.5 in the x axis?*
> Thanks in advance.
> --
> With Kind Regards,
>
> oooO:::::::::
> (..):::::::::
> :\.(:::Oooo::
> ::\_)::(..)::
> :::::::)./:::
> ::::::(_/::::
> :::::::::::::
> [***********************************************************************]
> Zhi Jie,Zhang ,PHD
> Tel:86-21-54237149 epistat at gmail.com
> Dept. of Epidemiology,school of public health,Fudan University
> Address:No. 138 Yi Xue Yuan Road,Shanghai,China
> Postcode:200032
> [***********************************************************************]
> oooO:::::::::
> (..):::::::::
> :\.(:::Oooo::
> ::\_)::(..)::
> :::::::)./:::
> ::::::(_/::::
> :::::::::::::
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list