xpose.plot.splom | R Documentation |
This function is a wrapper for the lattice splom function.
xpose.plot.splom(
plist,
object,
varnames = NULL,
main = "Scatterplot Matrix",
xlb = NULL,
ylb = NULL,
scales = list(),
onlyfirst = TRUE,
inclZeroWRES = FALSE,
subset = xsubset(object),
by = object@Prefs@Graph.prefs$condvar,
force.by.factor = FALSE,
include.cat.vars = FALSE,
ordby = NULL,
byordfun = object@Prefs@Graph.prefs$byordfun,
shingnum = object@Prefs@Graph.prefs$shingnum,
shingol = object@Prefs@Graph.prefs$shingol,
strip = function(...) strip.default(..., strip.names = c(TRUE, TRUE)),
groups = NULL,
ids = object@Prefs@Graph.prefs$ids,
smooth = TRUE,
lmline = NULL,
panel = xpose.panel.splom,
aspect = object@Prefs@Graph.prefs$aspect,
samp = NULL,
max.plots.per.page = 4,
mirror = FALSE,
mirror.aspect = "fill",
pass.plot.list = FALSE,
x.cex = NULL,
y.cex = NULL,
main.cex = NULL,
mirror.internal = list(strip.missing = missing(strip)),
...
)
plist |
A vector of strings containing variable names for the scatterplot matrix. |
object |
An "xpose.data" object. |
varnames |
A vector of strings containing labels for the variables in the scatterplot matrix. |
main |
A string giving the plot title or |
xlb |
A string giving the label for the x-axis. |
ylb |
A string giving the label for the y-axis. |
scales |
A list to be used for the |
onlyfirst |
A logical value indicating whether only the first row per individual should be included in the plot. |
inclZeroWRES |
A logical value indicating whether rows with WRES=0 should be plotted. |
subset |
A string giving the subset expression to be applied to the
data before plotting. See |
by |
A string or a vector of strings with the name(s) of the conditioning variables. |
force.by.factor |
Logical value. If TRUE, and |
include.cat.vars |
Logical value. |
ordby |
A string with the name of a variable to be used to reorder any
factor conditioning variables ( |
byordfun |
The name of the function to be used when reordering a factor
conditioning variable (see argument |
shingnum |
The number of shingles ("parts") a continuous conditioning variable should be divided into. |
shingol |
The amount of overlap between adjacent shingles (see argument
|
strip |
The name of the function to be used as the strip argument to
the |
groups |
A string with the name of any grouping variable (used as the
groups argument to |
ids |
A logical value indicating whether text labels should be used as
plotting symbols (the variable used for these symbols indicated by the
|
smooth |
A |
lmline |
logical variable specifying whether a linear regression line
should be superimposed over an |
panel |
The name of the panel function to use. |
aspect |
The aspect ratio of the display (see
|
samp |
An integer between 1 and object@Nsim
(see |
max.plots.per.page |
The maximum number of plots per page that can be created with the mirror plots. |
mirror |
Should we create mirror plots from simulation data? Value can
be |
mirror.aspect |
The aspect ratio of the plots used for mirror functionality. |
pass.plot.list |
Should we pass the list of plots created with mirror
or should we print them directly. Values can be |
x.cex |
The size of the x-axis label. |
y.cex |
The size of the y-axis label. |
main.cex |
The size of the title. |
mirror.internal |
an internal mirror argument used in
|
... |
Other arguments passed to |
If ids
is TRUE
, text labels are added to the plotting symbols.
The labels are taken from the idlab
xpose data variable. The way the
text labels are plotted is governed by the idsmode
argument (passed
down to the panel function). idsmode=NULL
(the default) means that
only extreme data points are labelled while a non-NULL
value adds
labels to all data points (the default in Xpose 3).
xpose.panel.default
identifies extreme data points by fitting a loess
smooth (y~x
) and looking at the residuals from that fit. Points that
are associated with the highest/lowest residuals are labelled. "High" and
"low" are judged by the panel function parameter idsext
, which gives
the fraction of the total number of data points that are to be judged
extreme in the "up" and "down" direction. The default value for
idsext
is 0.05 (see link{xpose.prefs-class}
). There is also a
possibility to label only the high or low extreme points. This is done
through the idsdir
argument to xpose.panel.default
. A value of
"both" (the default) means that both high and low extreme points are
labelled while "up" and "down" labels the high and low extreme points
respectively.
More graphical parameters may be passed to xpose.panel.splom
.
for example, if you want to adjust the size of the varnames
and
axis tick labels
you can use the parameters varname.cex=0.5
and axis.text.cex=0.5
.
Returns a scatterplot matrix graph object.
E. Niclas Jonsson, Mats Karlsson, Andrew Hooker & Justin Wilkins
xpose.panel.splom
, splom
,
panel.splom
, xpose.prefs-class
,
xpose.data-class
## Not run:
## xpdb5 is an Xpose data object
## We expect to find the required NONMEM run and table files for run
## 5 in the current working directory
xpdb5 <- xpose.data(5)
## CL, WT, HT, SEX with a regression line
xpose.plot.splom(c("CL", "WT", "HT", "SEX"), xpdb5, lmline = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.