myCorChart | R Documentation |
Copy of PerformanceAnalytics::chart.Correlation (v2.0.4) with a few adjustments
myCorChart(
R,
histogram = TRUE,
method = c("pearson", "kendall", "spearman"),
pch = 20,
main = "Correlation"
)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.