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

ggCor

Draw a heatmap of correlation test


Description

Draw a heatmap of correlation test

Usage

ggCor(
  data,
  what = 1,
  label = 0,
  colors = NULL,
  title = TRUE,
  mode = 2,
  digits = 2,
  yreverse = TRUE,
  xangle = 45,
  yangle = 0,
  use.label = FALSE
)

Arguments

data

A data.frame

what

if 1, correlation, if 2, partial correlation, if 3, semi-partial correlation

label

if 0, no label(default), if 1, use r value as label, if 2, use r value with significant mark as label

colors

colors for low, mid and high correlation values

title

if true, add title to the heatmap

mode

1 or 2

digits

The number of decimal place'

yreverse

If true, reverse y axis

xangle

x-axis text angle

yangle

y-axis text angle

use.label

Logical whether or not use label in case of labelled data


processR

Implementation of the 'PROCESS' Macro

v0.2.6
GPL-2
Authors
Keon-Woong Moon [aut, cre], Sokyoung Hong [ctb]
Initial release
2021-1-5

We don't support your browser anymore

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