Paul,
Facet_wrap() and a few relatives are the end of a process and you left out the rest of what you want.
You need to first have multiple lines of code that would make some kind of graph using ggplot(…) + geom_line(…) and so on first and then use facet_wrap(…), with appropriate arguments, to specify a formula that results in making multiple plots that vary depending on what you want.
In many cases, you would need to first change the format of your data such as condensing Year2016 through Year2022 into long format so that you have a field like “YEAR” and another like “VALUE” and then work on it.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ggplot2/d13cff0f-e97d-4c2e-b84f-eb6c900c76fen%40googlegroups.com.