Description Usage Arguments Examples
Function to make many scatterplots for exploratory analyses. Includes Pearson correlation and sample size in the plot title.
1 2 3 |
yname |
name of variable from tdat to plot on y-axis |
xname |
name of variable from tdat to plot on x-axis |
long.yname |
character string to be put on y-axis |
long.xname |
character string to be put on x-axis |
showr |
TRUE means include correlation and n on plot heading |
use.pch |
pch symbol to be used in plot |
use.cex |
cex (character expansion) for plotting symbols |
jitx |
factor component of jitter(x,factor=jitx) |
jity |
factor component of jitter(y,factor=jity) |
addtomain |
additional text for main title (if showr=FALSE, this is the entire title) |
cex.xylab |
cex for x and y axes |
cex.title |
cex for title (and correlation, if shown) |
... |
Other graphical parameters sent to plot |
1 2 | test.dat<-data.frame(x=rnorm(10),y=rbinom(10,2,.5))
scatter.plot(test.dat,yname="y",xname="x")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.