Re: [R] How to stratify data with multiple group simultaneously with R ggplot2?

2025-06-08 Thread Jeff Newmiller via R-help
You can use group=interaction(w,z)... but in my experience that gets confusing for the poor person trying to make sense of the plot. It is better to use color=w, linetype=z or use facets for one of the grouping variables. On June 7, 2025 11:21:32 PM PDT, Luigi Marongiu wrote: >I would like to

Re: [R] How to stratify data with multiple group simultaneously with R ggplot2?

2025-06-08 Thread Rui Barradas
Às 07:21 de 08/06/2025, Luigi Marongiu escreveu: I would like to plot multivariate data with ggplot2. I have multiple groups that I need to account for: I have the `x` and `y` values, but the data must be stratified also by `w` and `z`. I can group by either `w` or `z`, but how can I group for bo