xysplom | R Documentation |
scatterplot matrix with potentially different sets of variables on the rows and columns. The slope or regression coefficient for simple least squares regression can be displayed in the strip label for each panel.
xysplom(x, ...)
## S3 method for class 'formula'
xysplom(x, data=NULL, na.action = na.pass, ...)
## Default S3 method:
xysplom(x, y=x, group, relation="free",
x.relation=relation, y.relation=relation,
xlim.in=NULL, ylim.in=NULL,
corr=FALSE, beta=FALSE, abline=corr||beta, digits=3,
x.between=NULL, y.between=NULL,
between.in=list(x=x.between, y=y.between),
scales.in=list(
x=list(relation=x.relation, alternating=FALSE),
y=list(relation=y.relation, alternating=FALSE)),
strip.in=strip.xysplom,
pch=16, cex=.75,
panel.input=panel.xysplom, ...,
cartesian=TRUE,
plot=TRUE)
x |
In the |
... |
other arguments to |
z
data |
data.frame |
na.action |
See
|
y |
In the |
group |
In the |
relation , x.relation , y.relation , scales.in |
Alternate ways to get to the
|
xlim.in , ylim.in |
Alternate ways to get to the
|
corr , beta |
Display the correlation and/or the regression
coefficient for |
abline |
logical. If |
digits |
number of significant digits for the correlation coefficient. |
x.between , y.between , between.in |
Alternate ways to get to the
|
strip.in |
strip function that knows how to handle the |
pch , cex |
arguments to |
panel.input |
panel function used by |
cartesian |
When |
plot |
Defaults to |
The argument plot=TRUE
is the normal setting and then the
function returns a "trellis"
object. When the argument
plot=FALSE
, the function returns the argument list that would
otherwise be sent to xyplot
. This list is interesting when the
function xysplom
was designed because the function works
by restructuring the input data and running xyplot
on the
restructured data.
When plot=TRUE
(the normal setting),
the "trellis"
object containing the graph.
When plot=FALSE
, the restructured data that must be sent to the
xyplot
function.
Richard M. Heiberger <rmh@temple.edu>
Heiberger, Richard M. and Holland, Burt (2015). Statistical Analysis and Data Display: An Intermediate Course with Examples in R. Second Edition. Springer-Verlag, New York. https://link.springer.com/book/10.1007/978-1-4939-2122-5
xyplot
in R.
## xysplom syntax options
tmp <- data.frame(y=rnorm(12), x=rnorm(12), z=rnorm(12), w=rnorm(12),
g=factor(rep(1:2,c(6,6))))
tmp2 <- tmp[,1:4]
xysplom(y + w ~ x , data=tmp, corr=TRUE, beta=TRUE, cartesian=FALSE, layout=c(1,2))
xysplom(y + x ~ z | g, data=tmp, layout=c(2,2))
xysplom(y + x ~ z | g, data=tmp, cartesian=FALSE)
xysplom(w + y ~ x + z, data=tmp)
xysplom(w + y ~ x + z | g, data=tmp, layout=c(2,4))
xysplom(w + y ~ x + z | g, data=tmp, cartesian=FALSE)
## Not run:
## xyplot in R has many similar capabilities with xysplom
if.R(r=
xyplot(w + z ~ x + y, data=tmp, outer=TRUE)
,s=
{}
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.