plot_data: Scatterplot of features from meta data or gene expression

View source: R/plotting.R

plot_dataR Documentation

Scatterplot of features from meta data or gene expression

Description

Plot variables from meta data or from gene expression. feat_x will be plotted on the x-axis, while feat_y will be plotted on on the y-axis. These variables can come from test_data or the normalized gene expression values of a features.

Usage

plot_data(sce, feat_x = "total_counts", feat_y = "n_genes",
  log_x = FALSE, log_y = FALSE, color = NULL, alpha = 0.1,
  data_type = "test", ret = FALSE)

Arguments

sce

An SCE object.

feat_x

Variable of x axis to plot.

feat_y

Varibale of y axis to plot.

log_x

Boolean indicating whether to log transform the y-axis.

log_y

Boolean indicating whether to log transform the y-axis.

color

Color points by values in this column of test_data, such as Call.

alpha

A numeric value controlling the transparency of the points. From 0 (transparent) to 1 (no transparency).

data_type

Either test or all, specifying the droplets to plot

ret

A logical specifying whether to return the ggplot object or just print it out.

Value

Nothing. If return=TRUE, then return a ggplot object


marcalva/diem documentation built on Jan. 1, 2023, 2:33 a.m.