geom_text: Textual annotations

Description Usage Arguments Examples

Description

Textual annotations

Usage

1
2
  geom_text(aesthetics = list(), parse = FALSE,
    fontfamily = NULL, fontface = NULL, lineheight = NULL)

Arguments

parse

If TRUE, the labels will be parsed into expressions and displayed as described in plotmath

fontfamily
fontface

character string specifying plain, bold, italic etc.

lineheight

line height as multiple of text height

Examples

1
2
3
4
5
df <- data.frame(x = 1:5, y = 1:5, label = letters[1:5])
geom_plot(geom_text(), df)
geom_plot(geom_text(list(angle = 45)), df)
geom_plot(geom_text(fontface = "bold"), df)
geom_plot(geom_text(fontfamily = "Times New Roman"), df)

hadley/layers documentation built on May 17, 2019, 10:42 a.m.