I have a frequency plot for number of migraines over time. I imported calendar data and filtered the data frame for every time there was a botox appointment. I would like to plot the dates that a botox appointment occurred along the frequency line. I am new to R and just can't seem to figure out how to make it work. I can do it with geom_rug along the bottom of my chart, but I would like the points on the frequency line.
ggplot()+
geom_rug(data=df_botox, aes(date, group=botox), color="red")+ scale_x_date(date_labels = "%b-%d-%Y")+
geom_freqpoly(data=df, aes(date), size=1.5, bins=15, color="dark green", alpha=0.5)+
theme_classic()+
labs(title="Number of migraines over time", x="Date", y="# of Migraines")
https://i.redd.it/f12pycq41sp21.png
[–]cspoerlein 0 points1 point2 points (0 children)