I\'m trying to plot some data using ggplot and I\'m having some problems with the significant lines and asterisk.
This is the code I am using:
aesthetics are inherited by default. The geom_path is trying to look for the Group variable on the path dataset to get the color. You should use inherit.aes = FALSE on the geom_path:
aesthetics
geom_path
Group
path
inherit.aes = FALSE
geom_path(data = path, aes(x = x,y = y), inherit.aes = FALSE )