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

geom_text_contour did not show labels as expected #183

Open
wbvguo opened this issue Dec 8, 2023 · 0 comments
Open

geom_text_contour did not show labels as expected #183

wbvguo opened this issue Dec 8, 2023 · 0 comments

Comments

@wbvguo
Copy link

wbvguo commented Dec 8, 2023

Dear metR developer,

Thanks for maintaining this tool. I was trying to use geom_text_contour but found a small issue. Specifically, when I use

+ geom_text_contour(aes(z = sd, label = after_stat(level)),  color = "black", breaks = seq(0, 0.16, 0.01)) 

I got the following figure, where there are 2 labels on the top contour and they are overlapped
image

I want each contour level to have one single label, so I added the label.placer = label_placer_n(n=1) arguments, and get the following figure

+ geom_text_contour(aes(z = sd, label = after_stat(level)), label.placer =  label_placer_n(n=1), color = "black", breaks = seq(0, 0.16, 0.01))

image

Somehow it strangely still shows 2 labels on the top contour and changed the position of another label. May I ask if you have any insights about this issue or any suggestions to fix it?

Thanks!

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