View source: R/pcaOtherPlotting.R
plotPCAbiplot | R Documentation |
Plot PCA bi plot
plotPCAbiplot(
spe_object,
n_loadings = 10,
dims = c(1, 2),
precomputed = NULL,
assay = 1,
arrow_x = 0,
arrow_y = 0,
...
)
spe_object |
A SpatialExperiment object. |
n_loadings |
Plot the top n gene loadings |
dims |
The top n dimensions to be plotted |
precomputed |
a dimensional reduction results from |
assay |
a numeric or character, specifying the assay to use (for
|
arrow_x |
a numeric, indicating the x coordinate of the base of the arrow. |
arrow_y |
a numeric, indicating the y coordinate of the base of the arrow. |
... |
aesthetic mappings to pass to |
A ggplot object.
data("dkd_spe_subset")
plotPCAbiplot(dkd_spe_subset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.