Learn R Programming

cytofkit (version 1.4.8)

cytof_colorPlot: Plot the data with color-coded marker values

Description

Plot the data with color-coded marker values

Usage

cytof_colorPlot(data, xlab, ylab, zlab, colorPalette = c("bluered", "topo", "heat", "terrain", "cm"), pointSize = 1, removeOutlier = TRUE)

Arguments

data
A dataframe containing the xlab, ylab and zlab.
xlab
The column name of data for x lab.
ylab
The column name of data for y lab.
zlab
The column name of data for z lab.
colorPalette
Color Palette.
pointSize
The size of the point.
removeOutlier
If remove the outliers.

Value

A ggplot object.

Examples

Run this code
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 <- rnorm(300, 10, 5)
data <- data.frame(dim1 = x, dim2 = y, marker = c)
cytof_colorPlot(data = data, xlab = "dim1", ylab = "dim2", zlab = "marker")

Run the code above in your browser using DataLab