Description Usage Arguments Value Examples
View source: R/visualization-utils.R
Make a interaction line plot
1 |
y |
A continuous variable to be plotted along the y-axis |
x |
A continuous variable to be plotted along the x-axis |
by |
A categorical variable by which we split the data and create one line plot for each resulting group |
data |
A data frame with the |
ylim |
A vector of limits for the y-axis |
xlab |
The label of the x-axis (defaults to the |
ylab |
The label of the y-axis (defaults to the |
A ggplot2::ggplot
object, which may be modified with further ggplot2
commands.
1 2 3 4 5 6 7 | interaction_line_plot(y = score, x = time, by = treatment,
data = selfesteem2_long, ylim = c(70, 100))
interaction_line_plot(y = score, x = time, by = treatment,
data = selfesteem2_long,
xlab = 'measurement time',
ylab = 'self esteem score',
ylim = c(70, 100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.