Re: [R] Legend position in ggplot

2021-06-17 Thread Felipe Carrillo via R-help
Like this? theme(legend.position= 'top' On Thursday, June 17, 2021, 10:52:04 AM PDT, peri He wrote: Dear Friends, I would like to see my legend outside of a ggplot (at the top). This code is showing the legend inside of a plot: theme(legend.position=c(0.15,0.97)) But when I changed

[R] Legend position in ggplot

2021-06-17 Thread peri He
Dear Friends, I would like to see my legend outside of a ggplot (at the top). This code is showing the legend inside of a plot: theme(legend.position=c(0.15,0.97)) But when I changed it to : theme(legend.position=c(-0.15,1.5)) , the legend disappears. I would appreciate it if you share your id