In fact, I'm a beginner. I want to make a graph using ggplot2.
But the error ( data must be a data frame, or other object coercible by fortify(), not an S3 object with class uneval ) is keeping. What should I do? (I want to use ed_di data to make a graph)
Thanks.
welfare1 <- welfare_new
welfare1 <- rename(welfare1,
ed = h01_g6,
di = h01_g8)
welfare1$ed <- ifelse(welfare1$ed == 1, NA, welfare1$ed)
table(welfare1$ed)
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: