View source: R/swne_plotting.R
FeaturePlotSWNE | R Documentation |
Plots swne embedding with feature overlayed
FeaturePlotSWNE(
swne.embedding,
feature.scores,
feature.name = NULL,
alpha.plot = 0.5,
quantiles = c(0.01, 0.99),
samples.plot = NULL,
label.size = 4.5,
pt.size = 1,
color.palette = "YlOrRd",
contour.geom = "path",
contour.alpha = 0.25
)
swne.embedding |
SWNE embedding (list of NMF and sample coordinates) from EmbedSWNE |
feature.name |
Name of feature to overlay |
alpha.plot |
Data point transparency |
quantiles |
Quantiles to trim outliers from |
samples.plot |
Samples to actually plot. Default is NULL, which plots all samples |
label.size |
Label font size |
pt.size |
Sample point size |
color.palette |
RColorbrewer palette to use |
contour.geom |
Plot contour as either a line or a filled in region |
contour.alpha |
Transparency of the contour line/region |
feature.score |
Feature vector to overlay |
ggplot2 object with swne plot with feature overlayed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.