View source: R/SpatialPCA_utilties.R
plot_cluster | R Documentation |
This function visualizes cluster labels on locations.
plot_cluster(
location,
clusterlabel,
pointsize = 3,
text_size = 15,
title_in,
color_in,
legend = "none"
)
location |
A n by k matrix of spot locations. |
clusterlabel |
A vector of cluster labels for spots. |
pointsize |
An integer, the point size of each spot. |
title_in |
A character string, the title you want to display at the top of the figure. |
color_in |
A vector of colors for each cluster. |
legend |
A character string, the position of the figure legend. Select from "top", "bottom","left" or "right". |
textsize |
An integer, the text size in the legend. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.