Re: [R] Multiple plots question

From: jim holtman <jholtman_at_gmail.com>
Date: Wed, 19 Mar 2008 19:01:57 -0500

You should go through and collect the 'range' of the data that you want to plot and then use "ylim" in the "plot" to set the limits for the range.

On Wed, Mar 19, 2008 at 6:20 PM, Andre Nathan <andre_at_digirati.com.br> wrote:
> Hello
>
> I have a number of different data sets, each loaded as a matrix. I'd
> like to plot them in a way that the data in the first column of each
> matrix is plotted on the same pair of axes.
>
> What I'm doing now is to call plot() for the data on the first matrix,
> then call points() for the other ones. However, the axes are set by R
> according to the data passed to plot(), and sometimes the data passed to
> points() has larger values on the x axis, and the plot ends up being
> "cut" (the y axis is not a problem since they're all probabilities).
>
> Is there a way to dynamically adapt the axes so that all data can be
> seen? I know I could build a new matrix with the columns I want to plot
> but each matrix has 1 million rows, so I figure this would be
> inefficient.
>
> Do I have to check beforehand which column has the largest value and
> call plot() on it, and then points() on the others, or is there an
> automatic way to do this?
>
> Thanks in advance,
> Andre
>
> ______________________________________________
> 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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
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.
Received on Thu 20 Mar 2008 - 00:10:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Mar 2008 - 01:30:27 GMT.

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

list of date sections of archive