I am new to R so please forgive my ignorance (1 week in). I am trying to produce a scatterplot with a break at the y-axis so that it starts at 0 but then breaks before beginning at 20 (there are no data points between 0 and 20) I have tried a variety of commands using plotrix (by going through previous answered questions) but it doesn't change the outputting plot. The following code produces a nice plot formatted in the way I would like but I am not sure where or what to do next to then produce the break in the y-axis (perhaps denoted with //).
Age_perception <- ggplot(mydata
, aes(x=Age_years, y=Perception)) +
coord_cartesian(ylim = c(0, 100))+
geom_point()+
labs(x='Age in years', y='Perception') +
geom_smooth(method=lm, se=FALSE, fullrange=TRUE, col = 'black') +
apatheme +
theme(text = element_text(size=20))
Age_perception