[R] Legend position in ggplot

peri He @t@t|@t|c@84 @end|ng |rom hotm@||@com
Thu Jun 17 19:51:31 CEST 2021


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 ideas.

Regards,

Peri



	[[alternative HTML version deleted]]



More information about the R-help mailing list