myCorChart: My Correlation Chart

myCorChartR Documentation

My Correlation Chart

Description

Copy of PerformanceAnalytics::chart.Correlation (v2.0.4) with a few adjustments

Usage

myCorChart(
  R,
  histogram = TRUE,
  method = c("pearson", "kendall", "spearman"),
  pch = 20,
  main = "Correlation"
)

Arguments

R

data for the x axis, can take matrix, vector, or timeseries

histogram

TRUE/FALSE whether or not to display a histogram

method

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

pch

plotting symbol to use. see 'pch values' under ?pch

main

optional title for plot

Details

PerformanceAnalytics::chart.Correlation() has a '...' argument to pass arguments to pairs(), but it doesn't work. Needed to change the point type and add a title so copied the function and added that. Everything else is the same.


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.