eliocamp / metR

Tools for Easier Analysis of Meteorological Fields
https://eliocamp.github.io/metR/
142 stars 22 forks source link

No .label.position function #126

Closed kongdd closed 3 years ago

kongdd commented 3 years ago
library(ggplot2)
v <- reshape2::melt(volcano)
g <- ggplot(v, aes(Var1, Var2)) +
       geom_contour(aes(z = value))
g + geom_label_contour(aes(z = value))
Error in .label.position(data.table::copy(data), min.size, skip, rotate = FALSE) :
No function `.label.position`
eliocamp commented 3 years ago

Oh, boy. I rewrote a lot of geom_text_contour and totally missed that non of that was compatible with geom_label_contour. :sweat_smile: Thanks for the heads up!

It's now working in the dev version. :)

kongdd commented 3 years ago

thank you