Creates ggplots of marginal effect for factorial variables from plot.gbm in gbm.auto.
Creates ggplots of marginal effect for factorial variables from plot.gbm in gbm.auto.
Creates an additional plot to those created by gbm.plot within gbm.auto. Can also take Bin/Gaus_Best_line.csv or similar csvs directly. Allows changing of x axis levels and all ggplot and ggsave params.
x: Input data.frame or tibble or csv (full file address including .csv) to read, must be a categorical variable.
factorplotlevels: Character vector of the variable's levels to reorder the x axis by, all must match those in the first column of the csv exactly. Default NULL orders from high to low Y value.
ggplot2guideaxisangle: Default 0. Set at e.g. 90 to rotate.
ggplot2labsx: Default: "".
ggplot2labsy: Default: "Marginal Effect".
ggplot2axistext: Default: 1.5.
ggplot2axistitle: Default: 2.
ggplot2legendtext: Default: 1.
ggplot2legendtitle: Default: 1.5.
ggplot2legendtitlealign: Default: 0, # otherwise effect type title centre aligned for some reason.
ggplot2plotbackgroundfill: Default: "white", white background.