I'm trying to highlight 2 specific points with the following code:
p1 <- ggplot(HiBAP1517, aes(FE, DWSpk)) +
gghighlight_point(HiBAP1517, aes(FE, DWSpk), value == 51.875) +
geom_point(shape=16) +
geom_smooth(method=lm, se = F) +
theme(axis.title.x = element_text(color="black", size=14, face="bold"),
axis.title.y = element_text(color="black", size=14, face="bold"))
pfinal <- p1 + labs(y = expression("DM spk"^{-1}*"g"),
x = expression("FE"*(grainsg^{-1})))
pfinal
Getting the following error:
Error in mutate_impl(.data, dots) : Evaluation error: object 'value'not found.
pfinal <- p1 + labs(y = expression("DM spk"^{-1}*"g"), +
x = expression("FE"*(grainsg^{-1})))
Error: object 'p1' not found
pfinal
Error: object 'pfinal' not found
Any ideas what I might be doing wrong? Thanks!