Open wbvguo opened 8 months ago
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
+ 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
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
label.placer = label_placer_n(n=1)
+ 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))
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!
Dear metR developer,
Thanks for maintaining this tool. I was trying to use
geom_text_contour
but found a small issue. Specifically, when I useI got the following figure, where there are 2 labels on the top contour and they are overlapped![image](https://github.com/eliocamp/metR/assets/31968837/28eb0e57-e216-4790-ba02-0795393bfa0b)
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 figureSomehow 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!