Learn R Programming

cocoreg (version 0.1.1)

ggplot_dflst: Plot a list of data.frames using ggplot2

Description

Plot a list of data.frames using ggplot2

Usage

ggplot_dflst(dflst, ncol = 1, plot = T, plotfun = ggplot_df, ...)

Arguments

dflst
A list of datasets as a list of data.frames
ncol
(optional) Number of columns in final plot
plot
(optional) Plot or not: if TRUE produces a plot else returns a list of ggplot objects
plotfun
(optional) Function used to plot a data.frame (one panel in final plot)
...
(optional) Additional parameters passed on to plotfun

Value

Produces a plot to the active graphics device or returns a list of ggplot objects

Examples

Run this code
## Not run: ------------------------------------
# dc <- create_syn_data_toy()
# ggplot_dflst(dc$data)
## ---------------------------------------------

Run the code above in your browser using DataLab