expression_plot_2: Expression Plot 2

Description Usage Arguments Details Value Examples

View source: R/expression_plot_2.R

Description

Displays the level of expression of two genes in each cell on the 2D projected data.

Usage

1
expression_plot_2(data, name.1, name.2, tsne)

Arguments

data

a data frame of n rows (genes) and m columns (cells) of read or UMI counts (note : rownames(data)=genes)

name.1

the identifier of the first gene of interest

name.2

the identifier of the second gene of interest

tsne

a table of n rows and 2 columns with t-SNE projection coordinates for each cell

Details

This function can be used independantly from any other. It displays the expression level of two genes of interest on a 2D projection.

'name.1' and 'name.2' can be any characters that correspond to a row name of 'data'.

Value

The function returns a R plot.

Examples

1
2
3
4
data <- matrix(runif(100,0,1),nrow=2,ncol=50)
rownames(data) <- c("gene 1", "gene 2")
tsne <- matrix(runif(100,-1,1),ncol=2)
expression_plot_2(data,"gene 1","gene 2",tsne)

SingleCellSignalR documentation built on Nov. 8, 2020, 5:17 p.m.