Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vis_cor

Visualise correlations amongst variables in your data as a heatmap


Description

Visualise correlations amongst variables in your data as a heatmap

Usage

vis_cor(data, cor_method = "pearson",
  na_action = "pairwise.complete.obs", ...)

Arguments

data

data.frame

cor_method

correlation method to use, from cor: "a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated."

na_action

The method for computing covariances when there are missing values present. This can be "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" (default). This option is taken from the cor function argument use.

...

extra arguments you may want to pass to cor

Value

ggplot2 object

Examples

vis_cor(airquality)
## Not run: 
vis_cor(mtcars)
vis_cor(iris)

## End(Not run)

visdat

Preliminary Visualisation of Data

v0.5.3
MIT + file LICENSE
Authors
Nicholas Tierney [aut, cre] (<https://orcid.org/0000-0003-1460-8722>), Sean Hughes [rev] (<https://orcid.org/0000-0002-9409-9405>, Sean Hughes reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/87), Mara Averick [rev] (Mara Averick reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/87), Stuart Lee [ctb], Earo Wang [ctb], Nic Crane [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.