View source: R/SpatialPCA_utilties.R
plot_RGB_tSNE | R Documentation |
We summarized the inferred low dimensional components into three tSNE components and visualized the three resulting components with red/green/blue (RGB) colors in the RGB plot.
plot_RGB_tSNE(location, latent_dat, pointsize = 2, textsize = 15)
location |
A n by k location matrix. n is spot number. |
latent_dat |
A d by n matrix of low dimensional components. |
pointsize |
The point size of each spot. |
textsize |
The text size in the legend. |
A list.
RGB |
A data frame with five columns: x coordinate, y coordinate, R, G, and B color index |
figure |
A ggplot object for RGB plot from tSNE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.