Skip to content

Instantly share code, notes, and snippets.

@aaronschiff
Created August 15, 2017 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aaronschiff/98295295d13d0d53c1e4e827c90ae167 to your computer and use it in GitHub Desktop.
Save aaronschiff/98295295d13d0d53c1e4e827c90ae167 to your computer and use it in GitHub Desktop.
Jaggy label in ggplot
library(ggplot2)
dat <- data.frame(x = 1:10, y = runif(10))
chart <- ggplot(dat) +
geom_bar(aes(x = x, y = y), stat = "identity") +
geom_text(aes(x = 2, y = 1.5, label = "This text is jaggy"), size = 6)
print(chart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment