I am trying to change the size of the legend text in a nested plot, but when I add theme(legend.text= element_text(size=8)), I get the error:
Error in `ggplot_add()`:
! Problem merging the `legend.text` theme element
Caused by error in `merge_element()`:
! Only elements of the same class can be merged
I'm wondering if there is a way to change the font size and other parameters of the legend?
Hi!
I am trying to change the size of the legend text in a nested plot, but when I add
theme(legend.text= element_text(size=8))
, I get the error:I'm wondering if there is a way to change the font size and other parameters of the legend?
Cheers!