plot_metagene: Produce a metagene plot

Description Usage Arguments Value Examples

View source: R/plot_metagene.R

Description

Produce a metagene plot

Usage

1
plot_metagene(df, facet_by = NULL, group_by = NULL)

Arguments

df

a data.frame obtained with the get_data_frame function. Must have the following columns: "region", "design", "bin", "value", "qinf" and "qsup".

facet_by

A formula to be used for facetting the metagene plot. This formula can include any design metadata, or region_metadata NA can be used to keep the previous value. Default: NA.

group_by

A string representing a single column from design_metadata or region_metadata which will be used to group observations together into lines and which will be used to generate the color scale. NA can be used to keep the previous value. Default: NA.

Value

A 'ggplot' object.

Examples

1
2
3
   mg <- get_demo_metagene()
   df <- mg$add_metadata()
   p <- metagene2::plot_metagene(df)

metagene2 documentation built on March 19, 2021, 6 p.m.