Skip to contents

Plot correlation matrix (highcharts)

Usage

plot_cor(data, title = NA, subtitle = NA, ...)

Arguments

data

output of wc_ecc

title

chart title

subtitle

chart subtitle

...

Arguments passed on to hc_themed

hc

a highchart object

label

optional annotation

base_font

default font for all chart elements

axes

show axes (default: TRUE)

exporting

include chart export menu (default: TRUE)

credits

include credits (default: FALSE)

Examples

data <- data.table(
  ecc_grm = rnorm(20),
  ecc_cdd = rnorm(20),
  ecc_crf = rnorm(20),
  ecc_crd = rnorm(20),
  ecc_crw = rnorm(20)
)
#> Error in data.table(ecc_grm = rnorm(20), ecc_cdd = rnorm(20), ecc_crf = rnorm(20),     ecc_crd = rnorm(20), ecc_crw = rnorm(20)): could not find function "data.table"
plot_cor(data)
#> Error in .(grm = ecc_grm > 0, cdd = ecc_cdd > 0, crf = ecc_crf > 0, crd = ecc_crd >     0, crw = ecc_crw > 0, erd = ecc_erd > 0, fdd = ecc_fdd >     0): could not find function "."