## 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)))
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)
Run the code above in your browser using DataCamp Workspace