View source: R/03_bcnsm_distributions.R
mvplot | R Documentation |
This function takes a matrix of quantitative data and generates a panel plot. The diagonal panels contains histograms for each variable, the lower panels display pairwise scatter plots, and the upper panels show some association measure, such as Kendall's tau, Spearman's rho, or Pearson correlation coefficient.
mvplot(y, method = c("kendall", "spearman", "pearson"), ...)
y |
a matrix or a data frame of quantitative data with variables in columns. |
method |
a character string indicating which association coefficient
is to be computed for the upper panels of the plot. It is computed
via [cor](stats::cor) function. One of |
... |
arguments to be passed to or from methods. |
A panel plot displaying histograms on the diagonal, scatterplots in the lower panels, and Kendall's tau correlation in the upper panels.
Rodrigo M. R. Medeiros <rodrigo.matheus@live.com>
data <- data.frame(x1 = rnorm(1000),
x2 = rgamma(1000, 2, 4),
x3 = rbeta(1000, 4, 1),
x5 = rlnorm(1000, 3, 0.5))
mvplot(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.