
Plot grouped line chart with labeled points
ggplot_point_line.RdThis function creates a line plot with labeled points, showing how a variable (y) evolves along another variable (x).
Arguments
- data
A data frame or tibble containing the variables to plot.
- x
Column to be mapped to the x-axis.
- y
Column to be mapped to the y-axis.
- group
Column specifying the grouping variable (mapped to color).
- label
Column specifying the labels for each point (optional).
- ...
Any other arguments passed to
aes().