I am using the R programming language. I am following this tutorial over here: http://www.sthda.com/english/wiki/ggplot2-legend-easy-steps-to-change-the-position-and-the-appeara