[R] Adding a legend to a (multi-facet) plot produced by ggplot().

Jeffrey Pullin je||rey@pu|||n @end|ng |rom gm@||@com
Sun Dec 1 03:35:03 CET 2019


Hi Rolf,

Some code to produce the plot you want is here:

https://gist.github.com/jeffreypullin/be752f11a136601ffecddc73ba0519b9

Hope you find it helpful.

Personally I have found that the key to effective ggplot2 use is getting
your data into the right format (one data.frame, tidy style) before you plot
it.

Cheers
Jeffrey

	[[alternative HTML version deleted]]



More information about the R-help mailing list