Change the direction of the legends in a ggplot2 plot – Snippet #78

Discover how to change the direction of the legends in a ggplot2 plot with R