the current data points are coloured differently in the scatter plot

You could use library(lubridate). For the last 10 days:

 geom_point(aes(color = ifelse(date >= now()-days(10), "#F07D00", "#007d3c"))) 

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top