marg.plot: Marginal density plots function

View source: R/marg.plot.R

marg.plotR Documentation

Marginal density plots function

Description

Draws marginal density plots for all variables

Usage

marg.plot(data.mat, title = NULL)

Arguments

data.mat

data matrix including all the variables.

title

title of each generated plot.

Value

Marginal density plot for each variable in the dataset.

Examples

### generate some data
dat <- MASS::mvrnorm(n = 1000, mu = c(1, 2, 3, 4), Sigma = diag(4))

### set column names
colnames(dat) <- paste0("Var ", 1:ncol(dat))

### marginal plots
marg.plot(data.mat = dat, title = paste0("Var", 1:nrow(dat)))

mvnimpute documentation built on July 6, 2022, 5:08 p.m.