Create a list by segmenting the input time range into regular periods for plots.
Usage
createTimeRangeForPlot(
startDate = timeRangeData[1],
endDate = timeRangeData[2],
periodLength = 7,
returnAsList = TRUE
)
See also
Other plot functions:
plotExploration()
,
plotLongitudinalMTR()
Examples
if (FALSE) { # \dontrun{
# Set server, database, and other input settings
# ===========================================================================
# Example with seven days time window
timeRangeData <- c("2024-01-01", "2024-02-15")
timeRangePlot <- createTimeRangePlot(timeRangeData[1], timeRangeData[2], 7)
print(timeRangePlot)
} # }