CorrMatrixPlot: CorrMatrixPlot

View source: R/PlotFunctions.R

CorrMatrixPlotR Documentation

CorrMatrixPlot

Description

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.

Usage

CorrMatrixPlot(data = NULL, CorrVars = NULL, Method = "spearman")

Arguments

data

Source data.table

CorrVars

Column names of variables you want included in the correlation matrix

Method

'spearman' default, 'pearson' otherwise

Author(s)

Adrian Antico

See Also

Other Graphics: AddFacet(), BarPlot(), BoxPlot(), ChartTheme(), DensityPlot(), HeatMapPlot(), HistPlot(), PlotlyConversion(), StockData(), StockPlot(), ViolinPlot(), multiplot()

Examples

## 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)


AdrianAntico/ModelingTools documentation built on Feb. 1, 2024, 7:33 a.m.