theme_phd_facet
plot ggplot like a pro for facet
theme_phd_facet(
ax.txt.siz = NULL,
ax.tit.siz = NULL,
lgd.txt.siz = NULL,
lgd.tit.siz = NULL,
strp.txt.siz = NULL,
t = NULL,
r = NULL,
b = NULL,
l = NULL,
frame = FALSE,
...
)
axis text size
axis title size
legend text size
legend title size
strip(facet) text size
distance to top border
distance to right border
distance to bottom border
distance to left border
logical, default is FALSE, if TRUE, frame will be added.
aesthetic facet frame
library(ggplot2)
p <- ggplot(mtcars,aes(x=disp,y=hp)) + geom_point(size=3,shape=1)+facet_grid(~cyl)
cowplot::plot_grid(p,p+theme_phd_facet())
cowplot::plot_grid(p,p+theme_phd_facet(frame=T))