1

enter image description here

How do I make the legend category colors bigger so that it is easy to identify what the colors correspond to in the graph.

Following is how I got the plot

 ggplot(data=dur)
 +geom_line(mapping=aes(x=yr,y=Country,color=dur$elec..sys,size=1.1))
Nathgun
  • 115
  • 1
  • 1
  • 8
  • Maybe this will help: https://stackoverflow.com/questions/16356052/control-ggplot2-legend-look-without-affecting-the-plot – S Rivero Nov 02 '17 at 16:42
  • Thanks. This worked ggplot(data=dur)+geom_line(mapping=aes(x=yr,y=Country,color=dur$elec..sys,size=1.1))+guides(colour = guide_legend(override.aes = list(size=3))) – Nathgun Nov 02 '17 at 16:54

0 Answers0