Relative Content

Tag Archive for rggplot2time-serieshighlight

Identifying start and end time and duration in minutes of highlighted area in ggplot

I have highlighted areas in a time series plot where variable 1 is greater than 28.3m and in a separate plot where variable 2 is between 335 and 390 and then stacked these plots on top of each other. I want to identify the start and end times, and the duration in minutes of each of the highlighted areas, and put that information into a dataframe. Is there a way to do this in R?

Identifying start and end time and duration in minutes of highlighted area in ggplot

I have highlighted areas in a time series plot where variable 1 is greater than 28.3m and in a separate plot where variable 2 is between 335 and 390 and then stacked these plots on top of each other. I want to identify the start and end times, and the duration in minutes of each of the highlighted areas, and put that information into a dataframe. Is there a way to do this in R?