Skip to content
Back to formatted view

Raw Message

Message-ID: <20090317104249.oykt4c48wkoscscg@webmail.slingshot.co.nz>
Date: 2009-03-16T21:42:49Z
From: Patrick Connolly
Subject: plot lines at 0,0 axis
In-Reply-To: <3A872540-8390-45B8-B744-ACAB02A9FEC0@ucd.ie>

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.