-1

Is it possible to overlay the legend on the graph area with GGPlot? The legend is set be default to the left of the graph area, but I would like to position it like the figure shows.

enter image description here

Luís de Sousa
  • 5,765
  • 11
  • 49
  • 86

1 Answers1

0

ggplot2 documentation on the subject plot+theme(legend.position = c(.5, .5))with the appropriate coordinates should do it.

Haboryme
  • 4,611
  • 2
  • 18
  • 21
  • 2
    This is more like a comment, also the post was marked as duplicate, avoid answering dupe posts. – zx8754 Sep 13 '16 at 10:14