While running a scatter plot (ggscatter) the system throws up this error:
Error in [.data.frame(data, , x) : undefined columns selected
The code is below:
mydata<-data.frame("eng_score" = 1:99, "53_target_pre_mover_2_0_model" = 1:99)
library("ggpubr")
ggscatter(mydata,y = "eng_score" , x = "`53_target_pre_mover_2_0_model`",
add = "reg.line", conf.int = TRUE,
cor.coef = TRUE, cor.method = "pearson",
xlab = "Likely to move", ylab = "Engagement score")
Appreciate the help!