ggdeck

fun ggdeck(plots: Iterable<Figure>, scaleShare: String? = null): SubPlotsFigure

Overlay several plots on one figure, with aligned drawing areas.

Examples

Return

SubPlotsFigure object.

Parameters

plots

Collection of plots. The first plot is the bottom layer, subsequent plots are drawn on top.

scaleShare

default = "x". Controls sharing of scale limits between overlaid plots.

  • "x" - share X-axis limits (the default; useful for secondary Y-axis).

  • "y" - share Y-axis limits.

  • "all" - share both X and Y limits.

  • "none" - do not share limits.