plot_mtp_list: Creates a list of 'ggplot' objects from a list of 'mtp'...

Description Usage Arguments Details Value See Also Examples

Description

Creates a list of ggplot objects from a list of mtp objects

Usage

1
plot_mtp_list(list_of_mtp, ...)

Arguments

list_of_mtp

A list of (named) mtp objects

...

Parameters passed on to plot_mtp

Details

List elements can have names, and the title of the ggplot objects defaults to the name of the elements in the list of mtp objects

Value

Returns a list of ggplot objects

See Also

plot_mtp for plotting a mtp object and plot_to_pdf for plotting a list of mtp objects to pdf

Other plot.functions: plot_mtp, plot_to_pdf

Examples

1
2
3
4
5
6
7
# df_mtp is a data frame of class mtp that comes with the package
names(df_mtp$mtp) <- paste("mtp", seq(1:length(mtps)))
names(df_mtp$mtp)
plots <- plot_mtp_list(df_mtp$mtp)

# to print all the plots individually using the \code{purrr} library
purrr::walk(plots, print)

JannikVindeloev/RAPr documentation built on May 7, 2019, 10:21 a.m.