Hi there,
first time posting so I hope i am doing this right. I am attempting to do a project for my university where i need to make a couple of plots. First one i managed to get but I keep getting the following error with the next one Error in ggplot (Error in FUN(X[[i]], ...) : object 'Probability' not found
It is very similar to the code i used the first time but I am baffled why this won't work. Not very experienced at all so if anyone has any hints could you break it down into simple terms please I tried googling the error but i can't understand the explanations.
ggplot(data=newdata6,
aes(x= EvCameron_NoNa, y= Probability, colour=Level)) +
geom_line(size=1.5) +
scale_x_continuous(breaks = c(1:10)) +
labs (x= "Evaluation of David Cameron (1 = lowest opinion)") + facet_grid(. ~ rsex)