facet_adjust | R Documentation |
Adjusts labels on x-axes when using facet_wrap
.
facet_adjust(x, pos = c("up", "down"), newpage = is.null(vp), vp = NULL)
x |
|
pos |
position of labels |
newpage |
draw new (empty) page first; see
|
vp |
viewport to draw plot in; see |
facet_adjust
object that inherits gtable
class
## Not run:
library('ggplot2')
## missing some labels
p <- ggplot(diamonds[1:100, ], aes(carat, price, colour = clarity)) +
geom_point() + facet_wrap( ~ cut)
p
facet_adjust(p)
facet_adjust(p, pos = 'down')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.