Skip to contents

Turn a RiboClass into a dataframe that should be ready to be used in ggplot. Metadata columns can be added if extra informations are needed.

Usage

format_to_plot(ribo, metadata_col = NULL, only_annotated = FALSE)

Arguments

ribo

A RiboClass object.

metadata_col

Metadata columns to add. Must be in RiboClass' metadata.

only_annotated

Keep only sites that have been annotated.

Value

A ggplot-friendly dataframe with the following columns : 1) site; 2) sample; 3) cscore; ...) any metadata added