draw_nonzero_boxplot: Boxplot of Non-Zero Genes

View source: R/graphs.R

draw_nonzero_boxplotR Documentation

Boxplot of Non-Zero Genes

Description

[Experimental]

This draws a boxplot, with overlaid data points, of the number of non-zero expressed genes per sample.

Usage

draw_nonzero_boxplot(object, position = position_jitter(0.2), alpha = 0.25)

Arguments

object

(AnyHermesData)
input.

position

(Position)
specifies x-axis position of points, e.g. for jittering.

alpha

(proportion)
specifies transparency of points.

Value

The ggplot object with the boxplot.

Examples

# Default boxplot.
result <- hermes_data
draw_nonzero_boxplot(result)

# Reusing the same position for labeling.
library(ggrepel)
pos <- position_jitter(0.5)
draw_nonzero_boxplot(result, position = pos) +
  geom_text_repel(aes(label = samples(result)), position = pos)

insightsengineering/hermes documentation built on Sept. 19, 2024, 9:06 p.m.