Re: [Rd] can't plot a line

From: Emmanuel Sharef <ess28_at_cornell.edu>
Date: Tue 23 Jan 2007 - 15:58:25 GMT

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.



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Jan 24 03:15:18 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 Jan 2007 - 16:31:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.