From an experiment, extract a data frame suitable for plotting with
ggplot()
. Select the relevant columns for plotting, using an x-variable,
a y-variable, and an optional grouping variable. If last_tick
is TRUE
,
then only include data for the last tick of each run. Otherwise, include all
ticks.
get_plot_data(experiment, x_var, y_var, group_var, last_tick)
An experiment object, returned by load_bs_file()
,
load_bs_table()
, or load_bs_spreadsheet()
.
The name of the independent variable for the x-axis
The name of the dependent variable for the y-axis.
The name of the variable to use for grouping.
Logical: plot only the last tick (as opposed to plotting all ticks).
A data frame suitable for plotting with ggplot()
.