Is there a way to get the arrowhead closed on geom_curve? The same code works with geom_segment. Maybe its a bug?
library(tidyverse)
set.seed(123)
data <- data_frame(x = rnorm(10), y = rnorm(10))
# NO ARROWHEAD FILL
ggplot(data, aes(x, y)) +
geom_point() +
geom_curve(aes(x = 0, y = 0, xend = 1, yend = 1),
color = "black",
arrow = arrow(type = "closed"))
# ARROWHEAD FILL WORKS
ggplot(data, aes(x, y)) +
geom_point() +
geom_segment(aes(x = 0, y = 0, xend = 1, yend = 1),
color = "black",
arrow = arrow(type = "closed"))
I'd call it a bug and you should file an issue. Until then:
Which leads to:
and