facet_adjust: Facet labeling

Description Usage Arguments Value Examples

View source: R/ggplots.R

Description

Adjusts labels on x-axes when using facet_wrap.

Usage

1
facet_adjust(x, pos = c("up", "down"), newpage = is.null(vp), vp = NULL)

Arguments

x

ggplot object

pos

position of labels

newpage

draw new (empty) page first; see print.ggplot

vp

viewport to draw plot in; see print.ggplot

Value

facet_adjust object that inherits gtable class

Examples

1
2
3
4
5
6
library('ggplot2')
## missing some labels 
(tmp <- ggplot(diamonds[1:100, ], aes(carat, price, colour = clarity)) + 
  geom_point() + facet_wrap( ~ cut))
facet_adjust(tmp)
facet_adjust(tmp, pos = 'down')

raredd/plotr documentation built on Nov. 19, 2018, 11:02 a.m.