[R] How to plot several graphs in a single 2-D figure?
Jerome Asselin
jerome at hivnet.ubc.ca
Thu Apr 10 21:59:06 CEST 2003
This has been discussed previously. You can get the idea from the R Help
archive. See the thread on "multiple plot overlay - dataframe" at:
http://maths.newcastle.edu.au/~rking/R/help/03a/2035.html
HTH,
Jerome
On April 10, 2003 12:39 pm, Feng Zhang wrote:
> Hi, R-listers
>
> I tried to plot several graphs in a sigle x-y coordinate settings, like
> the
>
> following:
> |(y) s
> | ****** s
> | ***** s
> | sssssssssssssssssss
> |_______________________________(x)
>
> where "*" and "s" denote two diffrent plots.
>
> However, when I used
> plot(data1); % data1 is the data points of "*"
> par(new=T);
> plot(data2); % data2 is the data points of "s"
>
> I found that the x and y labels are messed up, since different graphs
> use diffrent unit length on the x-axis and y-axis.
>
> So is there someway to avoid this problem?
> Or is there some other function plottting multiple plots in
> one x-y axis setting?
>
> Thanks for your point and help.
>
> Fred
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list