`interaction_line_plot.Rd`

Make a interaction line plot

interaction_line_plot(y, x, by, data, ylim = NULL, xlab = NULL, ylab = NULL)

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.

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))