View source: R/CrossExpression.R
tissue_expression_plot | R Documentation |
Plots gene expression and cross-expression on tissue by coloring cells.
tissue_expression_plot(
data,
locations,
gene1,
gene2,
cross_expression = TRUE,
neighbor = 1,
point_size = 0,
scale_bar = 0
)
data |
A cells by genes expression matrix. |
locations |
A cells by coordinates (x-y or higher dimensions) matrix. |
gene1 |
Name of gene 1. |
gene2 |
Name of gene 2. |
cross_expression |
If TRUE, only cross-expressing cell pairs are shown. |
neighbor |
The nearest neighbor (for cross-expression). |
point_size |
Point size on the scatter plot. |
scale_bar |
Length of the scale bad in microns. |
Returns a plot with cells shown as points and color indicating the genes it expresses.
data("locations")
data("expression")
locations = as.matrix(locations)
expression = as.matrix(expression)
expression = expression[,1:5]
tissue_expression_plot(data = expression, locations = locations, gene1 = "Calb1", gene2 = "Rasgrf2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.