qcorrplot: Init Correlation Plot This functions can be used to visualize...

View source: R/qcorrplot.R

qcorrplotR Documentation

Init Correlation Plot This functions can be used to visualize simply and directly a correlation matrix.

Description

Init Correlation Plot This functions can be used to visualize simply and directly a correlation matrix.

Usage

qcorrplot(data, ...)

## S3 method for class 'cor_md_tbl'
qcorrplot(
  data,
  mapping = NULL,
  drop = FALSE,
  parse = FALSE,
  grid_col = "grey50",
  grid_size = 0.25,
  fixed = TRUE,
  facets = list(),
  facets_order = NULL,
  use_md,
  ...
)

## Default S3 method:
qcorrplot(
  data,
  mapping = NULL,
  drop = FALSE,
  parse = FALSE,
  grid_col = "grey50",
  grid_size = 0.25,
  fixed = TRUE,
  facets = list(),
  facets_order = NULL,
  use_md,
  ...
)

Arguments

data

one of 'correlate', 'rcorr' or 'corr.test' object.

...

other parameters.

mapping

default list of aesthetic mappings to use for plot.

drop

logical, if TRUE will drop unused axis labels.

parse

logical or function generated by parse_func().

grid_col

colour of panel grid.

grid_size

size of panel grid.

fixed

if TRUE (default), will add coord_fixed() to plot.

facets

NULL or a parameters list of facet_wrap.

facets_order

character vector to set the order of facet panels.

use_md

deprecated.

Value

a gg object.

Author(s)

Hou Yun

Examples

### type = "full"
qcorrplot(correlate(mtcars)) +
  geom_square()
### type = "lower"
qcorrplot(correlate(mtcars), type = "lower") +
  geom_square()
### type = "upper"
qcorrplot(correlate(mtcars), type = "upper") +
  geom_square()

Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.