plot_sim {multivar} | R Documentation |
Plot data arising from multivar_sim.
Description
Plot data arising from multivar_sim.
Usage
plot_sim(
x,
plot_type = "common",
facet_ncol = 3,
datasets = "all",
ub = 1,
lb = -1
)
Arguments
x |
Object. An object returned by multivar_sim. |
plot_type |
Character. User can specify "common" to plot the common effects matrix, "unique" to plot the unique effects matrix, or "total" to plot the total effects matrix. |
facet_ncol |
Numeric. Number of columns to use in the "unique" or "total" effects plot. |
datasets |
Numeric. A vector containing the index of datasets to plot. Default is "all". |
ub |
Numeric. Upper bound on coefficient values for heatmap index. Default is 1. |
lb |
Numeric. Lower bound on coefficient values for heatmap index. Default is -1. |
Examples
k <- 3
d <- 5
n <- 50
prop_fill_com <- .2
prop_fill_ind <- .2
lb <- 0.1
ub <- 0.7
sigma <- diag(0.1,d)
sim <- multivar_sim(k, d, n, prop_fill_com, prop_fill_ind, lb, ub,sigma)
plot_sim(sim, plot_type = "common")
[Package multivar version 1.1.0 Index]