Description Usage Arguments Value Examples
Make a Pie chart with STRUCTURE grades of membership
1 2 3 | StructurePie(input_data, input_type, omega, color_set = NULL,
use_voom = TRUE, pie_radius = 0.8, xlab = "Co-ordinate1",
ylab = "Co-ordinate2", main = "STRUCTURE pie chart", control = list())
|
input_data |
The input data matrix with samples along the rows and
the columns either represnting either features (for
|
input_type |
The type of input data provided. One of three possible
options:
|
omega |
Cluster membership probabilities of each sample. Usually a sample by cluster matrix in the Topic model output. The cluster weights sum to 1 for each sample. |
color_set |
The set of colors used for the pie charts in STRUCTURE pie. Defaults to NULL, which uses a set of 75 qualitatively distinct colors. |
pie_radius |
The radius of the pie chart in STRUCTUREpie plot. |
xlab |
X-label of the STRUCTURE pie chart. |
ylab |
Y-label of the STRUCTURE pie chart. |
main |
The title of the STRUCTURE pie chart. |
control |
Control paramaters for the STRUCTURE pie chart plot.
User can add padding to the X and Y axes using |
Plots the Structure Pie chart visualization of the t-SNE or PCA or user defined co-ordinate decomposition of data.
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(singleCellRNASeqMouseDeng2014)
deng.counts <- exprs(Deng2014MouseESC)
data("MouseDeng2014.FitGoM")
omega <- MouseDeng2014.FitGoM$clust_6$omega
set.seed(1000)
StructurePie(t(deng.counts), input_type="apply_tsne",
use_voom=FALSE, omega = omega, xlab="TSNE1",
ylab = "TSNE2",
main = "STRUCTURE K=6 pie on tSNE")
StructurePie(t(deng.counts), input_type="apply_pca",
use_voom = TRUE, omega = omega, xlab="PCA1",
ylab = "PCA2",
main = "STRUCTURE K=6 pie on PCA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.