plotMatrix | R Documentation |
A special scatterplot matrix.
plotMatrix(data, ...)
## S3 method for class 'list'
plotMatrix(
data,
marg.exp = 0.02,
labels = names(data),
alpha = 1,
pch = 16,
size = unit(0.03, "npc"),
...
)
## S3 method for class 'data.frame'
plotMatrix(
data,
marg.exp = 0.02,
labels = names(data),
alpha = 1,
pch = 16,
size = unit(0.03, "npc"),
...
)
## S3 method for class 'aakplot'
print(x, newpage = is.null(vp), vp = NULL, ...)
data |
Data to plot. |
... |
optional arguments, passed to |
marg.exp |
Fraction by which to expand the plot at the margins. |
labels |
Names of variables plotted. |
alpha , pch , size |
Refer to the plotted points in the scatterplots. |
x |
|
newpage |
logical; if |
vp |
viewport to use. See |
## Not run:
x <- data.frame(a=rexp(n=1000,rate=1/3),b=rnorm(1000))
mutate(x,c=a+b^2,d=a-b^3) -> x
print(plotMatrix(x,alpha=0.2))
g <- plotMatrix(
x[-2],
labels=c(
expression(alpha),
expression(beta),
expression(phi)
),
alpha=0.3
)
print(g)
print(plotMatrix(as.list(x),alpha=0.2,breaks='scott'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.