
Trelliscope Visualisation of Distributional Characteristics
Source:R/trellis_vismi.R
trellis_vismi.RdGenerates a Trelliscope display for distributional characteristics across all variables.
Usage
trellis_vismi(
data,
imp_list,
m = NULL,
imp_idx = NULL,
integerAsFactor = FALSE,
color_pal = NULL,
marginal_x = NULL,
verbose = TRUE,
nrow = 2,
ncol = 4,
path = NULL,
...
)Arguments
- data
A data frame containing the original data with missing values.
- imp_list
A list of imputed data frames.
- m
An integer specifying the number of imputed datasets to plot. It should be smaller than
length(imp_list). Default is NULL (plot all).- imp_idx
A vector of integers specifying the indices of imputed datasets to plot. Default is NULL (plot all).
- integerAsFactor
A logical value indicating whether to treat integer variables as factors (TRUE) or numeric (FALSE). Default is FALSE.
- color_pal
A named vector of colors for different imputation sets. If NULL (default), a default color palette is used.
- marginal_x
A character string specifying the type of marginal plot to add for the x variable in 2D plots. Options are "hist", "box", "rug", "box+rug", or NULL (default, no marginal plot) when interactive = TRUE. Options are "box", "rug", "box+rug", or NULL (default, no marginal plot) when interactive = FALSE.
- verbose
A logical value indicating whether to print extra information. Default is TRUE.
- nrow
Number of rows in the Trelliscope display. Default is 2.
- ncol
Number of columns in the Trelliscope display. Default is 4.
- path
Optional path to save the Trelliscope display. If NULL, the display will not be saved to disk.
- ...
Additional arguments passed to the underlying plotting functions, such as point_size, alpha, nbins, width, and boxpoints.