powered by
Plot the first and second dimensions of a UMAP dimension reduction and color either by clustering results or metadata.
PlotSickleJrUMAP( SickleJr, umap.modality = "H", cluster = "kmeans", title = "", colorbymetadata = NULL, legendname = NULL )
An object of class SickleJr with plots added to the plots slot
plots
An object of class SickleJr
String corresponding to the name of the UMAP of interest: defaults to "H"
"H"
String input that indicates which cluster to color by: defaults to "kmeans"
"kmeans"
String input for optional ggplot plot title
ggplot
Name of metadata column if coloring by metadata
String input that to allow specification of a different legend name
ggplot2jrSiCKLSNMF
SimSickleJrSmall<-PlotSickleJrUMAP(SimSickleJrSmall, title="K-Means Example") SimSickleJrSmall<-PlotSickleJrUMAP(SimSickleJrSmall,umap.modality=1)
Run the code above in your browser using DataLab