Description Usage Arguments Value Examples
This is a function to help quickly visualize the relationships among your data. Like the other pre-themed plotting functions in this package, this utilizes a minimalist Tufte inspired aesthetic. When smooth is true it also automatically detects factor variables or variables with less than 4 unique values to avoid trying to fit a smooth line to nominal data, which is typically ugly at best and uninformative at worst.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
x |
The data frame |
smooth |
Should the smoother line be enabled? Defaults to FALSE. |
digits |
Number of significant digits. defaults to 2. |
method |
method used for correlations; one of "pearson", "spearman" (the default), or "kendall" |
pch |
The symbol used for plotting |
lm |
TRUE or FALSE (Defaults to FALSE) |
cor |
TRUE or FALSE (Defaults to TRUE) |
jitter |
TRUE or FALSE (Defaults to FALSE) |
amount |
Amount of jittering |
hist.col |
The histogram color. Defaults to "#217fffA6". |
points.col |
The color of the data points. Defaults to "#55ccd58A". |
smooth.col |
The color of the smooth line. Defaults to "#664389BF". |
breaks |
Breaks in histogram. Defaults to "FD" method. |
cex.cor |
Size of points |
cex.num |
The size of the numbers in the upper right triangle of the scatterplot. Defaults to 1.5 |
smoother |
If TRUE, then smooth.scatter the data points – slow but helps with overplotting with lots of subjects |
font |
font for the axis labels. Defaults to "serif" |
... |
other arguments |
a plot
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.