ggplot_dclst: Plotting data collections using ggplot

Description Usage Arguments Value Examples

View source: R/common_plots.R

Description

Plotting data collections using ggplot

Usage

1
2
ggplot_dclst(dc_lst, ylim = NULL, titleArr = names(dc_lst),
  legendMode = "none", dfplot = ggplot_df)

Arguments

dc_lst

A list of data collections i.e. a list of lists of data.frames (see examples)

ylim

(optional) y-axis limits as [1,2] numeric, passed on to dfplot() as 'ylim'

titleArr

(optional) Plot column titles as [1, length(dc_lst)] string array

legendMode

(optional) Where to put legend, allowed values c('none','first','all')

dfplot

(optional) Function used to plot a data.frame (one panel in final plot)

Value

Produces a plot to the active graphics device

Examples

1
2
3
4
5
6
## Not run: 
dc <- create_syn_data_toy()
ccr <- cocoreg(dc$data)
ggplot_dclst(list(d1 = dc$data, d2 = ccr$data, dn = dc$data))

## End(Not run)

cocoreg documentation built on May 2, 2019, 6:48 a.m.