[Rd] can't plot a line

Emmanuel Sharef ess28 at cornell.edu
Tue Jan 23 16:58:25 CET 2007


On Jan 23, 2007, at 10:41 AM, Spencer Graves wrote:

> Consider the following:
>
>       plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
>       lines(c(0,0), (2*c(-pi, pi))^2)
>

You are creating a line from point (0,(2*(-pi))^2) to point (0,(2*pi) 
^2), however, since (-pi)^2=pi^2, it's not much of a line.



More information about the R-devel mailing list