I’m new to R!
I have a data frame with dates and measurements:
mydata= Col1(date) Col2(diameter)
df<- mydata
I also have a list of functions(f), these functions check for patterns:
Function_list<- c(f1,f2,f3,f4,f5)
I’ve plotted mydata using ggplot2(geom_point), I’d now like to iterate through the list of functions f1 then f2… f5 and if any of the functions (can be more than 1) detect a pattern for the given data(mydata) highlight these diameter points on my geom_point plot.
How would I approach this problem, I’ve tried the annotate function, which allows me to label/annotate within ggplot2 but I’m not sure how to loop through the functions and add to my plot?