35

Can any help me change the title text size for these plots. i.e. make them larger? enter image description here

Script

ggplot(NMPSCMOR, aes(Length,  fill=Year)) + 
  geom_histogram(position="dodge", binwidth=60,  colour="black") + xlim(0, 600) +
  scale_fill_grey(start = 1, end = 0)+ 


  geom_vline(data=ddply(NMPSCMOR, Year~Morphology~Sector2, numcolwise(mean)), 
             mapping=aes(xintercept=Length,color=Year),  linetype=2, size=1) + 
  scale_color_grey(start=1,end=0)+

  xlab("Length Class") +
  ylab(expression(paste("Total Count"))) + #( ", m^2, ")", sep = 
  facet_wrap( ~ Morphology + Sector2, ncol=3, scales = "free") +
  theme(

    panel.grid.minor = element_blank(),               #removes minor grid lines
  panel.grid.major = element_blank())
Karolis Koncevičius
  • 9,417
  • 9
  • 56
  • 89
George
  • 1,343
  • 2
  • 12
  • 17

1 Answers1

82

In theme(), add strip.text = element_text(size=25) or whatever size you want.

user2034412
  • 4,102
  • 2
  • 23
  • 22
  • Thanks for that. I was using plot.title = element_text(size=12). Thanks to you and other users on this forum I am slowly getting better. It really is appreciated. Cheers – George Aug 21 '14 at 02:55
  • 3
    Do you know how to make the size of the title box smaller? – Scott May 16 '17 at 21:05
  • @Scott: `theme(strip.text = element_text(size = 25, margin = margin()))` – Gorka Jan 17 '22 at 13:07