multiplot: Plot two or more EDA objects.

View source: R/multiplot_utils.R

multiplotR Documentation

Plot two or more EDA objects.

Description

Plots values of two or more EDA objects as a classical bar, violin, boxplot or correlation point plot representation.

Usage

multiplot(
  ...,
  eda_names = NULL,
  type = c("default", "bar", "violin", "box", "hist", "correlation", "paired", "bubble",
    "stack"),
  scale = c("none", "fraction", "percent"),
  point_alpha = 0.5,
  point_hjitter = 0.05,
  point_wjitter = 0.1,
  point_color = "steelblue",
  point_size = 2,
  line_color = "black",
  line_alpha = 0.25,
  cust_theme = ggplot2::theme_classic(),
  plot_title = NULL,
  plot_subtitle = NULL,
  x_lab = NULL,
  y_lab = NULL,
  show_trend = TRUE,
  show_labels = TRUE,
  signif_digits = 2,
  txt_size = 2.75,
  txt_color = "black",
  geom_label = TRUE,
  bins = NULL,
  facet_hist = c("none", "horizontal", "vertical"),
  x_n_labs = FALSE
)

Arguments

...

numeric-type EDA objects, at least two, created by eda.

eda_names

a vector with names of the EDA objects.

type

type of the plot. 'default' plots violin for numeric EDAs and bars for factors. 'bar', 'bubble' or 'stack' (stack-bar plot) are available for factor-type EDAs. 'violin', 'box', 'hist', 'correlation' and 'paired' are available for numeric-type objects.

scale

the feature to be presented in factor bar or bubble plots. 'none' plots counts, 'percent' plots percentages, 'fraction' presents fraction fo complete observations.

point_alpha

alpha of the plot points.

point_hjitter

point jitter height.

point_wjitter

point jitter width.

point_color

color of the points in the correlation plot.

point_size

size of the points in the plots.

line_color

color of the trend line in the correlation plots or the connecting lines in the paired plots.

line_alpha

opacity of the connecting lines in the paired plot.

cust_theme

custom ggplot2 theme.

plot_title

text to be presented in the plot title.

plot_subtitle

text to be presented in the plot subtitle.

x_lab

text to be presented in the X axis title.

y_lab

text to be presented in the Y axis title.

show_trend

logical, should a trend line with 95% confidence intervals be presented in the correlation plots?

show_labels

logical, should labels with count numbers, percentages or fractions be presented in bar plots?

signif_digits

significant digits used for the label value rounding.

txt_size

size of the text label.

txt_color

color of the text label.

geom_label

logical, should the text in the stacked bar plot be presented as a ggplot's geom_label?

bins

bin number, passed to histogram.

facet_hist

'none': histograms are overlaid, 'horizontal': horizontal or 'vertical': vertical faceting.

x_n_labs

logical. If TRUE, n numbers per strata are displayed in the X axis of the plot instead of the plot tag. Defaults to FALSE and concerns violin, box, paired and stack plots.

Details

the particular EDA objects are color coded.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.