在facet_wrap多色图中更改图标题大小

Geo*_*rge 21 r ggplot2 facet-wrap

可以帮我改变这些图的标题文字大小.即使它们变大?在此输入图像描述

脚本

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())
Run Code Online (Sandbox Code Playgroud)

use*_*412 45

theme(),添加strip.text = element_text(size=25)或任何你想要的大小.

  • 你知道如何让标题框的尺寸变小吗? (3认同)