ggplot2 legend items in a single horizontal row ggplot2 legend items in a single horizontal row r r

ggplot2 legend items in a single horizontal row


Add this to your plot:

+ guides(colour = guide_legend(nrow = 1))