Skip to content
Prev 378556 / 398502 Next

Using ggplot2 geom_path() in a grouped variable

To Norberto;

Your code _probably_ would have succeeded if you had used color as a grouping argument, or you could have used group or linetype or probably others, but I find locating the listing of ggplot2 "behavioral" parameters rather frustrating. These details are not to be found in any of ?aes , ?ggplot , or ?geom_path. I was able to find those alternate parameters illustrated in the Data Visualization cheatsheet: https://github.com/rstudio/cheatsheets/blob/master/data-visualization-2.1.pdf

   ... + +geom_path(aes(color=factor(Control)))

However, one never knows about error semantics unless one has the data-object.