plot_nonzero: Non-zero expression plot

View source: R/plot_nonzero.R

plot_nonzeroR Documentation

Non-zero expression plot

Description

A function that calculates and plots "% expressed per marker gene per cluster" for the FRmatch input data object. % = number of cells that express the marker gene in the cluster / cluster size.

Usage

plot_nonzero(
  sce.object,
  return.plot = TRUE,
  return.value = FALSE,
  cellwidth = 15,
  cellheight = 10,
  main = NULL,
  ...
)

Arguments

sce.object

A FRmatch input data object. See example in sce.example.

return.plot

Logical variable indicating if to return the plot. Default: TRUE.

return.value

Logical variable indicating if to return the plotted values. Default: FALSE.

cellwidth, cellheight, main, ...

Plotting parameters passed to pheatmap.

Value

if return.value = TRUE, a matrix of plotted values.

Examples

## Not run: 
data("sce.example")
plot_nonzero(sce.example)

## End(Not run)


JCVenterInstitute/FRmatch documentation built on Dec. 15, 2022, 2:30 p.m.