Skip to content

Instantly share code, notes, and snippets.

@jebyrnes
Created February 9, 2022 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jebyrnes/cba224ddcbf45194c443813713cfef7b to your computer and use it in GitHub Desktop.
Save jebyrnes/cba224ddcbf45194c443813713cfef7b to your computer and use it in GitHub Desktop.
playing with geomtextpath
library(palmerpenguins)
library(ggplot2)
library(geomtextpath)
ggplot(penguins,
aes(x = body_mass_g, y = flipper_length_mm,
color = species, label = species)) +
geom_point(alpha = 0.2) +
geom_labelsmooth(method = "lm", boxlinewidth = 0) +
scale_color_manual(values = c("darkorange","purple","cyan4")) +
theme_classic()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment