View source: R/PlotFunctions.R
CorrMatrixPlot | R Documentation |
Build a violin plot by simply passing arguments to a single function. It will sample your data using SampleSize number of rows. Sampled data is randomized.
CorrMatrixPlot(data = NULL, CorrVars = NULL, Method = "spearman")
data |
Source data.table |
CorrVars |
Column names of variables you want included in the correlation matrix |
Method |
'spearman' default, 'pearson' otherwise |
Adrian Antico
Other Graphics:
AddFacet()
,
BarPlot()
,
BoxPlot()
,
ChartTheme()
,
DensityPlot()
,
HeatMapPlot()
,
HistPlot()
,
PlotlyConversion()
,
StockData()
,
StockPlot()
,
ViolinPlot()
,
multiplot()
## Not run:
data <- data.table::fread(file.choose())
CorrVars <- c('Weekly_Sales', 'XREG1', 'XREG2', 'XREG3')
p <- cor(data[, .SD, .SDcols = c(CorrVars)])
p1 <- heatmaply::heatmaply_cor(
p,
colors = c('red', 'white', 'blue'),
xlab = "Features",
ylab = "Features",
k_col = 2,
k_row = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.