get_plot_data | R Documentation |
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)
experiment |
An experiment object, returned by |
x_var |
The name of the independent variable for the x-axis |
y_var |
The name of the dependent variable for the y-axis. |
group_var |
The name of the variable to use for grouping. |
last_tick |
Logical: plot only the last tick (as opposed to plotting all ticks). |
A data frame suitable for plotting with ggplot()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.