Plot.ConfusionMatrix {AutoPlots}R Documentation

Plot.ConfusionMatrix

Description

Generate variable importance plots

Usage

Plot.ConfusionMatrix(
  dt = NULL,
  PreAgg = FALSE,
  XVar = NULL,
  YVar = NULL,
  ZVar = "N",
  YVarTrans = "Identity",
  XVarTrans = "Identity",
  ZVarTrans = "Identity",
  FacetRows = 1,
  FacetCols = 1,
  FacetLevels = NULL,
  NumberBins = 21,
  NumLevels_X = 50,
  NumLevels_Y = 50,
  Height = NULL,
  Width = NULL,
  Title = "Confusion Matrix",
  ShowLabels = FALSE,
  Title.YAxis = NULL,
  Title.XAxis = NULL,
  EchartsTheme = "macarons",
  MouseScroll = TRUE,
  TimeLine = TRUE,
  TextColor = "white",
  AggMethod = "count",
  GroupVar = NULL,
  xaxis.rotate = 0,
  yaxis.rotate = 0,
  ContainLabel = TRUE,
  Debug = FALSE
)

Arguments

dt

source data.table

PreAgg

FALSE

XVar

Column name of X-Axis variable. If NULL then ignored

YVar

Column name of Y-Axis variable. If NULL then ignored

ZVar

= "N"

YVarTrans

"Asinh", "Log", "LogPlus1", "Sqrt", "Asin", "Logit", "PercRank", "Standardize", "BoxCox", "YeoJohnson"

XVarTrans

"Asinh", "Log", "LogPlus1", "Sqrt", "Asin", "Logit", "PercRank", "Standardize", "BoxCox", "YeoJohnson"

ZVarTrans

"Asinh", "Log", "LogPlus1", "Sqrt", "Asin", "Logit", "PercRank", "Standardize", "BoxCox", "YeoJohnson"

FacetRows

Defaults to 1 which causes no faceting to occur vertically. Otherwise, supply a numeric value for the number of output grid rows

FacetCols

Defaults to 1 which causes no faceting to occur horizontally. Otherwise, supply a numeric value for the number of output grid columns

FacetLevels

Faceting rows x columns is the max number of levels allowed in a grid. If your GroupVar has more you can supply the levels to display.

NumberBins

= 21,

NumLevels_X

= NumLevels_Y,

NumLevels_Y

= NumLevels_X,

Height

"400px"

Width

"200px"

Title

title

ShowLabels

character

Title.YAxis

character

Title.XAxis

character

EchartsTheme

"auritus","azul","bee-inspired","blue","caravan","carp","chalk","cool","dark-bold","dark","eduardo", #' "essos","forest","fresh-cut","fruit","gray","green","halloween","helianthus","infographic","inspired", #' "jazz","london","dark","macarons","macarons2","mint","purple-passion","red-velvet","red","roma","royal", #' "sakura","shine","tech-blue","vintage","walden","wef","weforum","westeros","wonderland"

MouseScroll

logical, zoom via mouse scroll

TimeLine

logical

TextColor

'darkblue'

AggMethod

Choose from 'mean', 'sum', 'sd', and 'median'

GroupVar

= NULL

xaxis.rotate

numeric

yaxis.rotate

numeric

ContainLabel

logical

Debug

Debugging purposes

Value

plot

Author(s)

Adrian Antico

See Also

Other Model Evaluation: Plot.BinaryMetrics(), Plot.Calibration.Box(), Plot.Calibration.Line(), Plot.Gains(), Plot.Lift(), Plot.PartialDependence.Box(), Plot.PartialDependence.HeatMap(), Plot.PartialDependence.Line(), Plot.ROC(), Plot.Residuals.Histogram(), Plot.Residuals.Scatter(), Plot.ShapImportance(), Plot.VariableImportance()


[Package AutoPlots version 1.0.0 Index]