metR icon indicating copy to clipboard operation
metR copied to clipboard

Incorrect labels in `geom_contour_text()`

Open eliocamp opened this issue 1 year ago • 0 comments

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

eliocamp avatar Dec 06 '24 07:12 eliocamp