dr.plotting | R Documentation |
This function plots the indicated dimensional reduction (DR) from a previously calculated FlowCT::dim.reduction()
object.
dr.plotting(
data,
assay.i = "normalized",
plot.dr,
dims = c(1, 2),
color.by = "expression",
shape.by = NULL,
facet.by = NULL,
omit.markers = NULL,
title = "",
label.by = NULL,
size = 1,
raster,
return.df = F,
colors
)
data |
A object with DR generated with |
assay.i |
Name of matrix stored in the |
plot.dr |
String indicating the desired DR to plot (this indicated DR should be prevoulsy calculated to being plotted). If 'pca.loadings', the plotting result will show the weight of each marker for each PC (the first two components). |
color.by |
Variable from (from |
shape.by |
Variable from (from |
facet.by |
Variable from (from |
omit.markers |
Vector with markers to omit when plotting with |
title |
Title to add to the plot. |
label.by |
Variable from (from |
size |
Point size. Default = |
raster |
Number of pixels to consider for rastering image, if none indicated, not rasterization will performed. It is based on |
return.df |
Logical indicating if built |
colors |
Vector with colors for plotting. Default = |
n.dims |
Vector indicating the two DR components to plot. Default = |
## Not run:
dr.plotting(fcs, plot.dr = "tSNE", color.by = "condition")
dr.plotting(fcs, plot.dr = "UMAP", color.by = "patient_id")
dr <- dr.plotting(fcs, plot.dr = "PCA", color.by = "SOM", facet.by = "condition", return.df = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.