ez.scatterplots | R Documentation |
corrmap with scatterplot
ez.scatterplots(
x,
group = NULL,
histogram = TRUE,
smooth = TRUE,
scale = TRUE,
density = TRUE,
ellipses = FALSE,
digits = 2,
method = "pearson",
pch = 16,
colors = ez.palette("Zhu"),
lm = FALSE,
cor = TRUE,
jiggle = FALSE,
factor = 2,
hist.col = "light grey",
show.points = TRUE,
rug = TRUE,
breaks = "Sturges",
cex.cor = 2,
smoother = FALSE,
stars = TRUE,
ci = FALSE,
alpha = 0.05,
...
)
x |
a data.frame or matrix (pairwise deletion for NA) |
group |
factor col name, eg 'Species', to show different groups with different colors in scatterplot. This col will be excluded in the calcuation of r and scatterplot |
histogram |
Plot the middle diagonal histogram or show only variable name |
smooth |
TRUE draws loess smooths |
scale |
TRUE scales the correlation font by the size of the absolute correlation. |
density |
TRUE shows the density plots as well as histograms |
ellipses |
TRUE draws correlation ellipses |
digits |
the number of digits to show |
method |
method parameter for the correlation ("pearson","spearman","kendall") |
pch |
The plot character (defaults to 16 which is a '.'). |
lm |
Plot the linear fit rather than the LOESS smoothed fits. |
cor |
If plotting regressions, should correlations be reported? |
jiggle |
Should the points be jittered before plotting? |
factor |
factor for jittering (1-5) |
hist.col |
What color should the histogram on the diagonal be? eg, cyan, light grey, "#00AFBB" |
show.points |
If FALSE, do not show the data points, just the data ellipses and smoothed functions |
rug |
if TRUE (default) draw a rug under the histogram, if FALSE, don't draw the rug |
breaks |
If specified, allows control for the number of breaks in the histogram (see the hist function) |
cex.cor |
If this is specified, this will change the size of the text in the correlations. this allows one to also change the size of the points in the plot by specifying the normal cex values. If just specifying cex, it will change the character size, if cex.cor is specified, then cex will function to change the point size. |
smoother |
If TRUE, then smooth.scatter the data points – slow but pretty with lots of subjects |
stars |
For those people who like to show the significance of correlations by using magic astricks, set stars=TRUE p-values(0, 0.001, 0.01, 0.05, 1) <=> symbols("***", "**", "*", ".", " ") |
ci |
Draw confidence intervals for the linear model or for the loess fit, defaults to ci=FALSE. If confidence intervals are not drawn, the fitting function is lowess. |
alpha |
The alpha level for the confidence regions, defaults to .05 |
... |
other options for pairs |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.