View source: R/tab_dimensionreduction.R
plotPCALoadings  R Documentation 
The function plotPCALoadings
creates a loadings plot of the features.
plotPCALoadings(tbl, x_coord, y_coord)
tbl 

x_coord 

y_coord 

The function takes as input the output of the function
tblPlotPCALoadings
. It uses the ggplotly
function from
plotly
to create an interactive plotly
plot.
plotly
Thomas Naake
x < matrix(rnorm(seq_len(10000)), ncol = 100)
rownames(x) < paste("feature", seq_len(nrow(x)))
colnames(x) < paste("sample", seq_len(ncol(x)))
params < list(method = "euclidean", ## dist
initial_dims = 10, max_iter = 100, dims = 3, perplexity = 3, ## tSNE
min_dist = 0.1, n_neighbors = 15, spread = 1) ## UMAP
tbl < tblPCALoadings(x, params)
plotPCALoadings(tbl, x_coord = "PC1", y_coord = "PC2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.