plot_all_hists: plot marginal histograms of alluvial plot

View source: R/plot_marginal_hist.R

plot_all_histsR Documentation

plot marginal histograms of alluvial plot

Description

will create gtable with density histograms and frequency plots of all variables of a given alluvial plot.

Usage

plot_all_hists(p, data_input, top = TRUE, keep_labels = FALSE, ...)

Arguments

p

alluvial plot

data_input

dataframe, input data that was used to create dataframe

top

logical, position of histograms, if FALSE adds them at the bottom, Default: TRUE

keep_labels

logical, keep title and caption, Default: FALSE

...

additional arguments for specific alluvial plot types: pred_train can be used to pass training predictions for model response alluvials

Value

gtable

See Also

arrangeGrob

add_marginal_histograms

Examples

## Not run: 
p = alluvial_wide(mtcars2, max_variables = 3)
plot_all_hists(p, mtcars2)

## End(Not run)

erblast/easyalluvial documentation built on Dec. 11, 2023, 7:28 p.m.