plot_gene_on_map: Plots Gene Expression on Cells Coordinates

Description Usage Arguments

View source: R/PlotTree.R

Description

Plots the expression of a given gene on a given set of coordinates

Usage

1
2
3
4
plot_gene_on_map(GeneName, CellCoordinates, ExpressionMatrix,
  CoordLabels = c("Component 1", "Component 2", "Component 3"),
  Average = F, knn = 5, Palette = grDevices::colorRampPalette(colors
  = c("yellow", "orange", "red", "black")))

Arguments

GeneName

One of the elements in the Dataset$GeneNames object.

CellCoordinates

Matrix with 2 or 3 coordinates per cell.

ExpressionMatrix

Expression matrix

CoordLabels

Which coordinate labels to use

Average

wheter or not expression for cells will be averaged over the nearest knn neighbors. Default Average=FALSE

knn

number of neighbors over which expression for the cells will be averaged in case Average=TRUE. Default: knn=5

Palette

colors that will be used for the cells by default= Palette=colorRampPalette(colors=c("yellow", "orange", "red","black")))


soedinglab/merlot documentation built on June 28, 2020, 9:36 a.m.