[R] a few scatter plots for a specific correlation value

Greg Snow Greg.Snow at imail.org
Thu Mar 5 18:11:27 CET 2009


See the run.cor.examp function in the TeachingDemos package (in addition to the mvrnorm function in MASS).

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of June Kim
> Sent: Thursday, March 05, 2009 4:47 AM
> To: r-help at r-project.org
> Subject: [R] a few scatter plots for a specific correlation value
> 
> Hello,
> 
> Is there a simple way to draw a few random sample scatter plots from a
> given specific correlation coefficient(say, 0.18)?
> 
> ______________________________________________
> 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.




More information about the R-help mailing list