Closed jkittner closed 4 years ago
Hi! Sorry I missed this issue for so long!
I found that the problem is that in your code your data has just two points in the x direction. Because of that, most of your contour lines have only two points, which then breaks the way geom_text_contour() computes the position of the text.
I've pushed a patch to remove the error and return empty labels when something like that happens (you can install with remotes::install_github("eliocamp/metR")
). A full fix requires some more serious changes and will take a while.
Hi, sorry for my late response. It fixed the problem and everything works fine now. Thank you so much! I'll close the issue here.
Hi eliocamp, I really love your package it makes things so easy, but reacently for some reason I get this random error:
when using
geom_text_contour()
. But none of my vectors are logical, all of them are numeric ... My code is:For some reason for
InDataHH.txt
it works fine, but forInDataBI.txt
it throws the error. Both datasets have the exact same format. I can't make any sense out of this. It seems totally random for me... The data I am using: InDataBI.txt InDataHH.txt