Learn R Programming

celda (version 0.0.0.9000)

plotDrGrid: Create a scatterplot given two dimensions from a data dimensionality reduction tool (e.g tSNE)

Description

Create a scatterplot given two dimensions from a data dimensionality reduction tool (e.g tSNE)

Usage

plotDrGrid(dim1, dim2, matrix, size, xlab, ylab, color_low, color_mid,
  color_high, var_label)

Arguments

dim1

Numeric vector; first dimension from data dimensionality reduction output.

dim2

Numeric vector; second dimension from data dimensionality reduction output.

matrix

Matrix, will contain cells/samples as columns and variable of interest as rows.

size

Numeic vector; size of point on plot.

xlab

Character vector, used as label for x axis.

ylab

Character vector, used as label for y axis.

color_low

Character vector of R colors available from the colors() function. The color will be used to signify the lowest values on the scale.

color_mid

Character vector of R colors available from the colors() function. The color will be used to signify the midpoint on the scale.

color_high

Character vector of R colors available from the colors() function. The color will be used to signify the highest values on the scale.

var_label

Character vector, used as label for the scale.