Description Usage Arguments Value Examples
View source: R/cytof_postProcess.R
Dot plot visualization of the cluster results, with color indicating different clusters, and shape of different samples.
1 2 3  | 
data | 
 The data frame of cluster results, which should contains at least xlab, ylab and cluster.  | 
xlab | 
 The column name of the x axis in input   | 
ylab | 
 The column name of the y axis in input   | 
cluster | 
 The column name of cluster in input   | 
sample | 
 The column name of the sample in input   | 
title | 
 The title of the plot.  | 
type | 
 Plot type, 1 indicates combined plot, 2 indicated grid facet plot seperated by samples.  | 
point_size | 
 Size of the dot.  | 
addLabel | 
 If   | 
labelSize | 
 Size of cluster labels.  | 
sampleLabel | 
 If   | 
labelRepel | 
 If   | 
fixCoord | 
 If   | 
clusterColor | 
 Manually specify the colour of each cluster (mainly for ShinyAPP usage).  | 
The ggplot object of the scatter cluster plot.
1 2 3 4 5 6 7 8  | x <- c(rnorm(100, mean = 1), rnorm(100, mean = 3), rnorm(100, mean = 9))
y <- c(rnorm(100, mean = 2), rnorm(100, mean = 8), rnorm(100, mean = 5))
c <- c(rep(1,100), rep(2,100), rep(3,100))
rnames <- paste(paste('sample_', c('A','B','C'), sep = ''), rep(1:100,each = 3), sep='_') 
data <- data.frame(dim1 = x, dim2 = y, cluster = c)
rownames(data) <- rnames
data$sample <- "data"
cytof_clusterPlot(data, xlab="dim1", ylab="dim2", cluster="cluster", sample = "sample")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.