marg.plot | R Documentation |
Draws marginal density plots for all variables
marg.plot(data.mat, title = NULL)
data.mat |
data matrix including all the variables. |
title |
title of each generated plot. |
Marginal density plot for each variable in the dataset.
### 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.