distr_plots {modgo}R Documentation

Plots distribution of original and simulated data

Description

Produces a graphical display of the distribution of the variables of the original dataset and a single simulated dataset for an object returned by modgo.

Usage

distr_plots(
  Modgo_obj,
  variables = colnames(Modgo_obj[["original_data"]]),
  sim_dataset = 1,
  wespalette = "Cavalcanti1",
  text_size = 12
)

Arguments

Modgo_obj

An object returned by modgo.

variables

A character vector indicating the columns in the data to be used in plots.

sim_dataset

Number indicating the simulated dataset in Modgo_obj to be used in plots.

wespalette

a name of the selected wesanderson color pallet

text_size

a number for the size of the annotation text

Details

For continuous variables box-and-whisker plots are displayed, while categorical variables bar charts are produced.

Value

A ggplot object depicting distribution of different variables.

Author(s)

Andreas Ziegler, Francisco M. Ojeda, George Koliopanos

Examples

data("Cleveland",package="modgo")
test_modgo <- modgo(data = Cleveland,
     bin_variables = c("CAD","HighFastBloodSugar","Sex","ExInducedAngina"),
     categ_variables =c("Chestpaintype"))

distr_plots(test_modgo)


[Package modgo version 1.0.1 Index]