gglines: Make line plots with nice defaults

Description Usage Arguments Value Examples

Description

Make line plots with nice defaults

Usage

1
gglines(plot_data, opts = list())

Arguments

plot_data

[data.frame] A data.frame with data to create the lines plot from. The variables for x, y axis, colors / linetype, and faceting must be provided by opts. Otherwise, they will be filled in with defaults, see merge_line_opts(). The order in which variables appear on the axes is controlled by opts$x_order and opts$y_order.

opts

[list] A partially specified list used to customize appearance in ggplot theme(). Options that are already specified will not be changed, those that are not will be filled in with defaults.

Value

p [ggplot] A ggplot geom_tile() heatmap with nice defaults.

Examples

1
2
3
4
5
data(lines)
opts <- list(col = "color", facet_terms = c("rows", "columns"),
             color_scale = ggplot2::scale_color_brewer(palette = "Set1"),
             theme_opts = list(border_size = .6))
gglines(lines, opts)

krisrs1128/ggscaffold documentation built on May 20, 2019, 1:26 p.m.