Re: [R] How to fit all points into plot?

From: Patrick Burns <pburns_at_pburns.seanet.com>
Date: Fri 30 Dec 2005 - 20:46:09 EST

Another approach to what has already been suggested is to use 'matplot' (as in matrix plot).

Patrick Burns
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

Martin Lam wrote:

>Hi,
>
>I have a problem when I want to add new points (or a
>new line) to the graph. Some points (or parts of the
>line) are not shown on the graph because they lie
>beyond the scale of the axis. Is there a way to
>overcome this so all points (or the entire line) are
>shown on the graph? Here's an example of my problem:
>
>colors = c("red", "blue")
>
>plot(x=rnorm(100,0,1), y=runif(100), type="p", pch=21,
>col = colors[1])
>
># if I add these points not all of them are shown on
>the graph
>lines(x=rnorm(100,3,1), y=runif(100), type="p",
>pch=24, col = colors[2])
>
>Thanks in advance,
>
>Martin
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Dec 30 20:56:30 2005

This archive was generated by hypermail 2.1.8 : Sat 31 Dec 2005 - 00:04:06 EST