Plot.River {AutoPlots} | R Documentation |
Plot.River
Description
This function automatically builds calibration plots and calibration boxplots for model evaluation using regression, quantile regression, and binary and multinomial classification
Usage
Plot.River(
dt = NULL,
AggMethod = "mean",
PreAgg = TRUE,
XVar = NULL,
YVar = NULL,
GroupVar = NULL,
YVarTrans = "Identity",
XVarTrans = "Identity",
FacetRows = 1,
FacetCols = 1,
FacetLevels = NULL,
Height = NULL,
Width = NULL,
Title = "River Plot",
ShowLabels = FALSE,
Title.YAxis = NULL,
Title.XAxis = NULL,
EchartsTheme = "macarons",
MouseScroll = TRUE,
TimeLine = TRUE,
ShowSymbol = FALSE,
TextColor = "white",
title.fontSize = 22,
title.fontWeight = "bold",
title.textShadowColor = "#63aeff",
title.textShadowBlur = 3,
title.textShadowOffsetY = 1,
title.textShadowOffsetX = -1,
xaxis.fontSize = 14,
yaxis.fontSize = 14,
Debug = FALSE
)
Arguments
dt |
source data.table |
AggMethod |
character |
PreAgg |
logical |
XVar |
X-Axis variable name |
YVar |
Y-Axis variable name. You can supply multiple YVars |
GroupVar |
One Grouping Variable |
YVarTrans |
"Asinh", "Log", "LogPlus1", "Sqrt", "Asin", "Logit", "PercRank", "Standardize", "BoxCox", "YeoJohnson" |
XVarTrans |
"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. |
Height |
"400px" |
Width |
"200px" |
Title |
"Title" |
ShowLabels |
character |
Title.YAxis |
character |
Title.XAxis |
character |
EchartsTheme |
Provide an "Echarts" theme |
MouseScroll |
logical, zoom via mouse scroll |
TimeLine |
Logical |
ShowSymbol |
= FALSE |
TextColor |
"Not Implemented" |
title.fontSize |
22 |
title.fontWeight |
"bold" |
title.textShadowColor |
'#63aeff' |
title.textShadowBlur |
3 |
title.textShadowOffsetY |
1 |
title.textShadowOffsetX |
-1 |
xaxis.fontSize |
14 |
yaxis.fontSize |
14 |
Debug |
Debugging purposes |
Value
plot
Author(s)
Adrian Antico
See Also
Other Standard Plots:
Plot.ACF()
,
Plot.Area()
,
Plot.BarPlot3D()
,
Plot.Bar()
,
Plot.Box()
,
Plot.Copula3D()
,
Plot.Copula()
,
Plot.CorrMatrix()
,
Plot.Density()
,
Plot.Donut()
,
Plot.HeatMap()
,
Plot.Histogram()
,
Plot.Line()
,
Plot.PACF()
,
Plot.Parallel()
,
Plot.Pie()
,
Plot.ProbabilityPlot()
,
Plot.Radar()
,
Plot.Rosetype()
,
Plot.Scatter3D()
,
Plot.Scatter()
,
Plot.StackedBar()
,
Plot.Step()
,
Plot.WordCloud()
Examples
# Create fake data
data <- AutoPlots::FakeDataGenerator(N = 1000)
# Build plot
AutoPlots::Plot.River(
dt = data,
PreAgg = FALSE,
AggMethod = "mean",
XVar = "DateTime",
YVar = c(
"Independent_Variable1",
"Independent_Variable2",
"Independent_Variable3",
"Independent_Variable4",
"Independent_Variable5"),
YVarTrans = "Identity",
TextColor = "black",
EchartsTheme = "macarons")