Plot PCA bi plot
plotPCAbiplot(
  spe_object,
  n_loadings = 10,
  dims = c(1, 2),
  precomputed = NULL,
  assay = 1,
  arrow_x = 0,
  arrow_y = 0,
  ...
)A SpatialExperiment object.
Plot the top n gene loadings
The top n dimensions to be plotted
a dimensional reduction results from stats::prcomp.
result in reducedDims(object) to plot. Default is NULL,
we will compute for you.
a numeric or character, specifying the assay to use (for
SummarizedExperiment and its derivative classes).
a numeric, indicating the x coordinate of the base of the arrow.
a numeric, indicating the y coordinate of the base of the arrow.
aesthetic mappings to pass to ggplot2::aes().
A ggplot object.
data("dkd_spe_subset")
plotPCAbiplot(dkd_spe_subset)