sideBySidePlots: sideBySidePlots

View source: R/sideBySidePlots.R

sideBySidePlotsR Documentation

sideBySidePlots

Description

Show multiple plots side by side in one row, using the same plotly slider (frame aesthetic) if that is used.

Usage

sideBySidePlots(ggplots, margin = 0.05)

Arguments

ggplots

A list of ggplots. These plots are converted via plotly::ggplotly, however, passing plotly plots is not allowed, because they cannot be customized anymore. When using mipIterations set the argument returnGgplots to TRUE ot get ggplots instead of plotly plots.

margin

Margin between plots, passed on to plotly::subplot.

Value

A tagList containing an h3 for the titles and the ggplots in a plotly::subplot.

Author(s)

Pascal Führlich

See Also

mipIterations


pik-piam/mip documentation built on April 5, 2024, 12:31 p.m.