Change Legend Position in ggplot2, When a shape feature is mapped to a variable in the aes() component of the ggplot() call, ggplot2 will automatically construct a legend for your chart.

Approach1: Legend outside Plot

It is possible to put the l…

Continue reading: How to Change Legend Position in …