Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect labels in geom_contour_text() #196

Open
eliocamp opened this issue Dec 6, 2024 · 0 comments
Open

Incorrect labels in geom_contour_text() #196

eliocamp opened this issue Dec 6, 2024 · 0 comments

Comments

@eliocamp
Copy link
Owner

eliocamp commented Dec 6, 2024

library(ggplot2)
library(metR)
v <- reshape2::melt(volcano)
g <- ggplot(v, aes(Var1, Var2)) +
  geom_contour(aes(z = value))

g + geom_text_contour(aes(z = value),
                      label.placer = label_placer_n(3))

Created on 2024-12-06 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant