[R] draw two plots on a single panel

Gabor Csardi csardi at rmki.kfki.hu
Wed May 9 01:56:29 CEST 2007


See ?points and ?lines for a simple solution. Eg:

plot(data1)
points(data2)

if mean this by 'panel'.

Gabor

On Tue, May 08, 2007 at 04:49:47PM -0700, Patrick Wang wrote:
> Hi,
> 
> I have 2 dataset,
> 
> plot(data1)
> plot(data2),
> 
> but it comes as two graphs, can I draw both on a single panel so I can
> compare them?
> 
> Thanks
> Pat
> 
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK



More information about the R-help mailing list