label_facet: Label facets

Description Usage Arguments Details Value

Description

A convenience function for labeling facets for publication

Usage

1
2
3
4
5
label_facet(facets, data, labels = paste0(LETTERS, ")"), x = -Inf,
  y = Inf, hjust = -0.2, vjust = 1.4, size = rel(3.6),
  fontface = "bold", ...)

guess_dim_facet(facets, data)

Arguments

facets

A formula: the same that is supplied to facet_grid

data

a data.frame:

labels

labels to plot

x

see ?geom_text

y

see ?geom_text

hjust

see ?geom_text

vjust

see ?geom_text

size

see ?geom_text

fontface

see ?geom_text

...

extra arguments to geom_text

Details

needs the same data.frame and facet formula as the plot on top of which it is being layered

Value

geom_text object


oneyb/ggcrap documentation built on May 24, 2019, 2:24 p.m.