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,
  ...
)

Arguments

ax.txt.siz

axis text size

ax.tit.siz

axis title size

lgd.txt.siz

legend text size

lgd.tit.siz

legend title size

strp.txt.siz

strip(facet) text size

t

distance to top border

r

distance to right border

b

distance to bottom border

l

distance to left border

frame

logical, default is FALSE, if TRUE, frame will be added.

Value

aesthetic facet frame

Author

Tien-Cheng Wang

Examples

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))