graph_predictions | R Documentation |
This function returns a ggplot
graph_predictions(
predictions,
geom = "bar",
x = NULL,
fill = NULL,
facet = NULL,
facet2 = NULL,
colors = NULL
)
predictions |
A dataframe of model predictions. The y variable must be in the first column. |
x |
The variable to graph on the x axis. |
fill |
The (optional) variable to graph as a fill. |
facet |
The (optional) variable to graph as a facet |
facet2 |
The (optional) variable to graph as a second facet (for 4-way interactions) |
color |
An optional vector of colors for bars or lines. |
A ggplot (bar or line graph).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.