Adding additional aesthetics to the plot can be very desirable for differentiating data in each panel. But what should happen to the legends? please chime in @KopfLab/ggstackplot-team
library(ggstackplot)
#> Loading required package: ggplot2
ggstackplot(
mtcars,
x = mpg,
y = c(wt, qsec, drat),
color = c("#E41A1C", "#377EB8", "#4DAF4A"),
template = ggplot() +
aes(linetype = factor(cyl), shape = factor(cyl)) +
geom_line() +
geom_point(size = 3) +
theme_bw() +
theme(panel.grid = element_blank())
)
