corr_plots {modgo}R Documentation

Plots correlation matrix of original and simulated data

Description

Produces a graphical display of the correlation matrix of the original dataset, a single simulated dataset and also of the average of the correlation matrices across all simulations for an object returned by modgo.

Usage

corr_plots(
  Modgo_obj,
  sim_dataset = 1,
  variables = colnames(Modgo_obj[["simulated_data"]][[1]])
)

Arguments

Modgo_obj

An object returned by modgo.

sim_dataset

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

variables

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

Value

A patchwork object created by wrap_plots depicting correlation matrices.

Author(s)

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"))

corr_plots(test_modgo)


[Package modgo version 1.0.1 Index]