Learn R Programming

celda (version 0.0.0.9000)

plot_dr_grid: 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

plot_dr_grid(dim1, dim2, matrix, xlab, ylab, color_low, 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.

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_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.