flowViz.par.get {flowViz} | R Documentation |
flowViz.par.get
is the equivalent to
trellis.par.get
. It queries the session wide
defaults for all lattice
and flowViz
graphical
parameters.
flowViz.par.set
is the equivalent to
trellis.par.set
. It sets the same set of
graphical parameters, either in the flowViz
package or directly
in lattice
.
flowViz.par.get(name = NULL) flowViz.par.set(name, value, ..., theme, warn = TRUE, strict = FALSE)
name |
The name of a parameter category to set. |
value |
A named list of values to set for category name
or a list of such lists if name is missing. |
... |
Further arguments that get passed on. |
theme |
The theme to set. See
trellis.par.set for details. |
warn |
This gets passed on directly to trellis.par.set . |
strict |
This gets passed on directly to trellis.par.set . |
Getting and setting graphical parameters in flowViz
follows
exactly the mechanism of the lattice
package. For all purpose
and intentions, flowViz.par.get
and flowViz.par.get
can
be viewed as wrappers around their lattice
counterparts
trellis.par.get
and
trellis.par.set
and you should consult their
documentation for further details.
We introduce three new categories of graphical parameters that are
relevant for flowViz
plots:
xyplots
(if smooth=TRUE
) or of the points within a gate
region (smooth=FALSE
). Available parameters are col
,
cex
,pch
,alpha
,lwd
,lty
and
fill
. densityplots
. Available parameters are col
,
alpha
,lwd
,lty
and fill
. flowViz
plot. Available parameters are col
,
cex
,pch
,alpha
and fill
. col
,
cex
,font
,alpha
and lineheight
.
flowViz.par.get
returns a list of graphical parameter
defaults, if name
is not empty, only for this particular
category. For an empty name
argument, the function returns all
parameter defaults, including the ones specified in the lattice
package.
flowViz.par.set
is called for its side-effects of setting
default parameters.
Because parameter settings in lattice
are device-dependent,
flowViz.par.get
will open a (default) device none is open at the
time of the query.
F. Hahne
Lattice, Multivariate Data Visualization with R.
Deepayan Sarkar
Springer, New York, 2008
trellis.par.get
and
trellis.par.set
## Return all available parameters, including lattice ones flowViz.par.get() ## Set the font for gate names flowViz.par.set("gate.text", list(font=2)) ## Query only the gate.text category flowViz.par.get("gate.text") ## Set a lattice parameter plot.symbol <- trellis.par.get("plot.symbol") flowViz.par.set("plot.symbol", list(col="red")) trellis.par.get("plot.symbol") ## undo all settings flowViz.par.set(list(plot.symbol=plot.symbol, gate.text=list(font=1)))