plot.predict_profile function

Plot Variable Profile Explanations

Plot Variable Profile Explanations

## S3 method for class 'predict_profile' plot(x, ...)

Arguments

  • x: an object of the class predict_profile
  • ...: other parameters

Returns

An object of the class ggplot.

Plot options

ceteris_paribus

  • colora character. Either name of a color or name of a variable that should be used for coloring
  • sizea numeric. Size of lines to be plotted
  • alphaa numeric between 0 and 1. Opacity of lines
  • facet_ncolnumber of columns for the facet_wrap
  • variablesif not NULL then only variables will be presented
  • variable_typea character. If numerical then only numerical variables will be plotted. If categorical then only categorical variables will be plotted.
  • titlea character. Plot title. By default "Ceteris Paribus profile".
  • subtitlea character. Plot subtitle. By default NULL - then subtitle is set to "created for the XXX, YYY model", where XXX, YYY are labels of given explainers.
  • categorical_typea character. How categorical variables shall be plotted? Either "lines" (default) or "bars".