[R] problem with using lines command on windows XP machine
dimitris.rizopoulos at med.kuleuven.be
Thu Jan 5 11:42:16 CET 2006
I think you need "abline(v = 0)".
I hope it helps.
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
----- Original Message -----
From: "Edwin Commandeur" <e.commandeur at uvt.nl>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, January 05, 2006 11:27 AM
Subject: [R] problem with using lines command on windows XP machine
> I'm using R version 2.2.0 installed on windows XP machine, with SP2
> it's also interesting to note it's laptop, so it outputs to a laptop
> a l and I wanted to draw a line in a graph, but it does not seem to
> To test it I use the following code:
> x = c(-1,0,1)
> y = c(-1,0,1)
> plot(x,y, type="l", xlim=c(-1,1), ylim=c(-1,1))
> If I understand the documentation right this should draw a line
> default settings, I'm not setting any parameters) at x=0.
> I tried goofing around a bit setting linewidth and color
> differently, I
> tried using xy.coords etc, but no line appeared in the graph.
> The commands abline and segments work perfectly fine (so I am now
> segments to plot the line I want), but I still think the lines
> should work.
> Does anybody has similar problems drawing lines on XP machines (or
> in general?)? Or I am doing something abominably wrong?
> Greetings and thanks in advance for any replies,
> Edwin Commandeur
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help