[R] superimposing two scatterplots

Andy Bunn abunn at montana.edu
Tue Mar 2 00:06:18 CET 2004


?points

     plot(-4:4, -4:4, type = "n")# setting up coord. system
     points(rnorm(200), rnorm(200), col = "red")
     points(rnorm(100)/2, rnorm(100)/2, col = "blue", cex = 1.5)

> -----Original Message-----
> From: r-help-bounces+abunn=montana.edu at stat.math.ethz.ch 
> [mailto:r-help-bounces+abunn=montana.edu at stat.math.ethz.ch] 
> On Behalf Of Raphael Schoenle
> Sent: Monday, March 01, 2004 3:36 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] superimposing two scatterplots
> 
> 
> Hi,
>  
> How can I plot two scatterplots on the same, one panel?
> I have two times series (price data for two goods) for the 
> same period.
>  
> Many thanks,
>  
> -R
>  
>  
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
> PLEASE 
> do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list