Description Usage Arguments Examples
pairs
on steroids. Intended for use as one component of
exploratory data analysis
1 2 3 |
x |
matrix or data.frame with columns (variables) for which to generate a matrix
of scatterplots (like |
cor_method |
character scalar indicating which correlation coefficient to compute.
See |
scale |
logicial (default = TRUE); scale text indicating correlation coefficient with absolute magnitude of correlation? |
pch |
An integer specifying a symbol or a single character to be used when
plotting points. See |
jitter |
logical (default = FALSE); should values have a small amount of noise
added to aid differentiation? If TRUE, control jitter amount with |
factor |
numeric to change amount of jitter. See details of |
smooth_span |
smoother span; the proportion of points in the plot which influence the smoothness of the fitted LOWESS line. Restricted to (0, 1) here. Default is 2/3. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
a <- sort(runif(100))
df <- data.frame(super = a,
cali = a + rnorm(100, 0, 0.5),
fragi = rev(a) + rnorm(100, 0, 1),
listic = (a + rnorm(100, 0, 0.25)) ^ 2,
expi = rep(LETTERS[1:4], each = 25),
ali = a - rnorm(100, 0, 1.5),
docious = a + rnorm(100, 0, 2))
pairs_plus(df)
pairs_plus(df, scale = FALSE)
pairs_plus(df, smooth_span = 1/4)
pairs_plus(df, cor_method = "pearson")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.