Description Usage Arguments Value Author(s) See Also Examples
View source: R/cytoFunctions.R
Function to visualize multivariate (cytometry) data in three two-dimensional plots.
1 2 3 4 5 6 7 | threePanelPlot(data, x.panels = c(1, 4, 5), y.panels = c(2, 3, 6),
tot.width = 15, tot.height = 5.4, maxcells = 20000,
limits = c(0, 1023), remove.extremes = TRUE,
plotTitle = "Three-Panel Plot", use.smoothScatter = TRUE,
palette = colorRampPalette(brewer.pal(9, "Blues")),
new.device = TRUE, verbose = TRUE,
addPoints = NULL, addCol = "red", ...)
|
data |
data matrix to visualize |
x.panels |
which variables (columns) are to be plotted at the x-axis of the three variables |
y.panels |
which variables (columns) are to be plotted at the y-axis of the three variables |
tot.width |
width of a new device to open, see argument
|
tot.height |
height of a new device to open, see argument
|
maxcells |
maximum number of observations (cells) for plotting; higher numbers reduce performance |
limits |
minimum and maximum value (theoretically) observed in the data; e.g., with 10-channel digitized data it is c(0,1023) |
remove.extremes |
logical; are extreme values (equal to
theoretical |
plotTitle |
title for the plot |
use.smoothScatter |
logical, should the function
|
palette |
if |
new.device |
logical; should a new device be opened for the three
plots; if |
verbose |
logical; do you want extended output to STDOUT |
addPoints |
should special points be marked after plotting the
data; is expected to be a subser of argument |
addCol |
in which colour are the points in |
... |
further arguments passed on to |
no value is returned; the function is called to produce three plots
Joern Toedling toedling@ebi.ac.uk
1 2 3 4 5 6 7 8 9 | # generate some data:
toyData <- cbind(matrix(pmax(0,pmin(runif(3000)+rnorm(3000),4)),ncol=3),
matrix(pmax(0,pmin(rnorm(3000,2,1),4)),ncol=3))
colnames(toyData) <- paste("Var",1:6,sep="")
toyQuantiles <- apply(toyData,2,quantile,probs=c(0.25,0.5,0.75))
# plot it and mark the quantiles:
threePanelPlot(toyData,addPoints=toyQuantiles,
addCol=c("orange","red","purple"),limits=c(0,4),pch=20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.