facet_adjust: Facet labeling

View source: R/ggplots.R

facet_adjustR Documentation

Facet labeling

Description

Adjusts labels on x-axes when using facet_wrap.

Usage

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

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


raredd/plotr documentation built on Nov. 19, 2023, 4:09 a.m.