Learn R Programming

celda (version 0.0.0.9000)

plot_dr_state: Create a scatterplot based off of a matrix containing the celda state probabilities per cell.

Description

Create a scatterplot based off of a matrix containing the celda state probabilities per cell.

Usage

plot_dr_state(dim1, dim2, matrix, rescale = FALSE, xlab = "Dimension_1",
  ylab = "Dimension_2", color_low = "grey", color_high = "blue")

Arguments

dim1

Numeric vector; first dimension from data dimensionality reduction output.

dim2

Numeric vector; second dimension from data dimensionality reduction output.

matrix

Cell state probability matrix, will have cell name for column name and state probability for row name.

rescale

Boolean. If TRUE z-score normalize the matrix. Default FALSE.

xlab

Character vector, used as label for x axis. Default "Dimension_1".

ylab

Character vector, used as label for y axis. Default "Dimension_2".

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. Default: 'grey'

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. Default: 'blue'