density_plotter: Generate a density-plot of expression of selected genes,...

Description Usage Arguments Value Examples

View source: R/plotting_functions.r

Description

Generate a density-plot of expression of selected genes, faceted by selected feature

Usage

1
density_plotter(expression_df, feature_label)

Arguments

expression_df

Data frame containing expression values.

feature_label

Label in the data frame to facet by.

Value

p A ggplot object containing the generated plot

Examples

1
2
3
4
df <- tibble::tibble(TPM = runif(300),
                     lab = rep(c('A', 'B', 'C'), 100),
                     gene = rep(c('A', 'B', 'C'), 100))
density_plotter(df, feature_label = "lab")

rdocking/amlpmpsupport documentation built on Jan. 4, 2021, 7:09 a.m.