Description Usage Arguments Details Value Note Author(s) References See Also Examples
flowViz.par.get
is the equivalent to
trellis.par.get
. It queries the session wide defaults
for all lattice
and flowViz
graphical parameters.
1 2 3 4 | flowViz.par.get(name = NULL)
flowViz.par.set(name, value, ..., theme, warn = TRUE, strict = FALSE,
reset = FALSE)
|
name |
The name of a parameter category to set. |
value |
A named list of values to set for category |
... |
Further arguments that get passed on. |
theme |
The theme to set. See
|
warn |
This gets passed on directly to |
strict |
This gets passed on directly to |
reset |
|
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
.
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 four new categories of graphical parameters that are relevant
for flowViz
plots:
Controls the appearance of gate boundaries in
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
.
Controls the appearance of gate boundaries in
densityplots
. Available parameters are col
,
alpha
,lwd
,lty
and fill
.
Controls the appearance of 'regular' points in a
flowViz
plot. Available parameters are col
,
cex
,pch
,alpha
and fill
.
Controls the appearance of the text used for gate names.
Available parameters are 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
Deepayan Sarker, Lattice, Multivariate Data Visualization with R, Springer, New York, 2008
trellis.par.get
and
trellis.par.set
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## 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)))
library(flowCore)
data(GvHD)
fs <- GvHD[1:2]
# using default ggplot2like theme
densityplot(~`FSC-H`, fs)
xyplot(`SSC-H`~`FSC-H`, fs, smooth = FALSE)
# reset it with default lattice theme
flowViz.par.set(theme = trellis.par.get(), reset = TRUE)
densityplot(~`FSC-H`, fs)
xyplot(`SSC-H`~`FSC-H`, fs, smooth = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.