Learn R Programming

TSCAN (version 1.10.2)

plotmclust: plotmclust

Description

Plot the model-based clustering results

Usage

plotmclust(mclustobj, x = 1, y = 2, MSTorder = NULL, show_tree = T, show_cell_names = T, cell_name_size = 3, markerexpr = NULL)

Arguments

mclustobj
The exact output of exprmclust function.
x
The column of data after dimension reduction to be plotted on the horizontal axis.
y
The column of data after dimension reduction to be plotted on the vertical axis.
MSTorder
The arbitrary order of cluster to be shown on the plot.
show_tree
Whether to show the links between cells connected in the minimum spanning tree.
show_cell_names
Whether to draw the name of each cell in the plot.
cell_name_size
The size of cell name labels if show_cell_names is TRUE.
markerexpr
The gene expression used to define the size of nodes.

Value

A ggplot2 object.

Details

This function will plot the gene expression data after dimension reduction and show the clustering results.

Examples

Run this code
data(lpsdata)
procdata <- preprocess(lpsdata)
lpsmclust <- exprmclust(procdata)
plotmclust(lpsmclust)

Run the code above in your browser using DataLab