GGPlot Facet X Label

Viewed 40
library(ggplot2)
d <- ggplot(diamonds, aes(carat, price, fill = ..density..)) +
  xlim(0, 2) + stat_binhex(na.rm = TRUE) + theme(aspect.ratio = 1)

d + facet_wrap(~ color)

Here this produces

enter image description here

What if you wish to have XLABEL under each column centered such as this:

enter image description here

0 Answers
Related