Make a ggplot plot from a BehaviorSpace experiment, using a chosen x-variable, y-variable, and optional grouping variable. In addition, the user may specify error bars for the plot, and may choose to plot all ticks, or only the last tick of each run.
make_plot(
experiment,
points,
lines,
x_var,
y_var,
group_var,
error_bars = "none",
last_tick = FALSE
)
A BehaviorSpace experiment object, as returned from
load_bs_file()
, load_bs_table()
, or load_bs_spreadsheet()
.
Logical: plot points.
Logical: plot lines.
The name of the x-variable.
The name of the y-variable.
Optionally, the name of a grouping variable.
The kind of error bars to use. Legal values are "none", "error bars", or "bands"
Logical: Plot only the last tick from each run.
A ggplot object.