I would like to have the text and the geom_area fill in a specific colour.
The colour code is : #795fc6
I tried but it is not working and the fill=0.1 isn´t the right colour at all.
My dataset consists of 26 variables of 4662 observations. For this plot I just need two variables. anaylysis_date (date format YYYY-MM-DD ) the y-axis is the sum of all observations occured at each day of the analysis period.
This is a reproducible example of the analysis date column :
df = c("2017-11-12", "2018-03-28", "2018-06-30", "2018-06-22", "2018-09-24" ,"2018-11-21")
This is my plot at the moment:
ggplot(data = DatasetApp, aes(x=analysis_date, fill=0.1)) +
geom_area(stat="bin",axis.text.x=col=c("#795fc6")) +
labs(x="Date",y="Number of Observations", title = "Number of observations pre and post GDPR", col="#795fc6")+
geom_vline(xintercept = as.numeric(DatasetApp$analysis_date[GDPR_date]), color=c("#5034c4"))+
theme_minimal()