facet_wrap_paginate x axis off place in last page

Viewed 129

The problem that I'm facing is that with facet_wrap_paginate on the last page the x axis is at the bottom of the picture, and not at the bottom of the plot.

Page 1

ggplot(diamonds) +
    geom_point(aes(carat, price), alpha = 0.1) +
    facet_wrap_paginate(~cut:clarity, ncol = 3, nrow = 6, page = 1)

enter image description here

And this is the last page:

Page 4

ggplot(diamonds) +
    geom_point(aes(carat, price), alpha = 0.1) +
    facet_wrap_paginate(~cut:clarity, ncol = 2, nrow = 6, page = 4)

enter image description here

As you can see the "carat" label is at the bottom rather than together with the plots. Any solution for that?

Thanks!

0 Answers
Related