[R] plot lines at 0,0 axis

p_connolly at slingshot.co.nz p_connolly at slingshot.co.nz
Mon Mar 16 22:42:49 CET 2009


Quoting Mohan Singh <Mohan.Singh at ucd.ie>:

> Hii
>
>    I am trying to plot lines at (0,0) axis where my scatterplot goes
> between positive n negative values for x and y axis
>
>    i can plot point using points(0,0) but if i want to draw lines
> along it, can't seem to get it right

?abline

maybe abline(h = 0)
abline(v = 0)

HTH



>
> Mohan
>
> ______________________________________________
> R-help at r-project.org 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