This is useful if you want to nudge labels a little ways from their points.
See also
Other position adjustments:
position_dodge(),
position_fill(),
position_identity(),
position_jitter(),
position_jitterdodge()
Examples
df <- data.frame(
x = c(1,3,2,5),
y = c("a","c","d","c")
)
ggplot(df, aes(x, y)) +
geom_point() +
geom_text(aes(label = y))
ggplot(df, aes(x, y)) +
geom_point() +
geom_text(aes(label = y), position = position_nudge(y = -0.1))