Create Biplot
Usage
create.biplot(
plot.data,
x.dim,
y.dim,
asp,
x.lab = NULL,
y.lab = NULL,
x.min = -5000,
x.max = asp$expr.data.max,
y.min = -5000,
y.max = asp$expr.data.max,
x.width.basis = -1000,
y.width.basis = -1000,
max.points = 1e+05,
color.palette = "rainbow",
save = TRUE,
title = NULL,
output.dir = NULL,
width = 5,
height = 5
)Arguments
- plot.data
A matrix or dataframe containing the flow cytometry data to be plotted. Column names should match the dimensions specified by
x.dimandy.dim.- x.dim
String specifying the column of
plot.datafor the x-axis of the plot.- y.dim
String specifying the column of
plot.datafor the y-axis of the plot.- asp
The AutoSpectral parameter list.
- x.lab
An optional label for the x-axis. If none is given (default
NULL), the column name specified byx.dimwill be used.- y.lab
An optional label for the y-axis. If none is given (default
NULL), the column name specified byy.dimwill be used.- x.min
Minimum value for the x-axis. Default is
-5000.- x.max
Maximum value for the x-axis. Default is the value specified by asp$expr.data.max, which will be the maximum for the cytometer.
- y.min
Minimum value for the y-axis. Default is
-5000.- y.max
Maximum value for the y-axis. Default is the value specified by asp$expr.data.max, which will be the maximum for the cytometer.
- x.width.basis
Width basis for the biexponential transform for the x-axis. Default is
-1000.- y.width.basis
Width basis for the biexponential transform for the x-axis. Default is
-1000.- max.points
Number of points to plot (speeds up plotting). Default is
1e5.- color.palette
Optional character string defining the viridis color palette to be used for the fluorophore traces. Default is
rainbow, which will be similar to FlowJo or SpectroFlo. Other pptions are the viridis color options:magma,inferno,plasma,viridis,cividis,rocket,makoandturbo.- save
Logical, if
TRUE, saves a JPEG file to theoutput.dir. Otherwise, the plot will simply be created in the Viewer.- title
Optional title for the plot filename. If
NULL, defaults tox.labvs.y.lab.- output.dir
Optional output directory. Default is NULL, in which case the current working directory will be used.
- width
Numeric, width of the saved plot. Default is
5.- height
Numeric, height of the saved plot. Default is
5.