We are given data on the annual income along with ages. A part of the problem is to "Draw a green dashed line separating people whose annual income is in the upper half from the rest." I know how to format the line but not sure how to code it that it is to separate the data (Which I believe should be placed at the astrik).
In addition, the graph that does show, does not seem to have a smoothing line. Is it because it is hidden behind the points of is it not graphed?
ggplot() +
geom_point(data = ss16wa, aes(AGEP, WAGP, color = SEX, shape = CIT, alpha = 0.5)) +
geom_smooth() +
geom_line(color = "green", linetype = "dashed" * ) +
xlab("Age") + ylab("Annual income, $")