View source: R/plot_measure_readings.R
plot_measure_readings | R Documentation |
Readings for each of the published measures are available for the recent period (up to the last four weeks). Longer historic data records may be available separately. Each reading comprises a reference to the measure being read (identified by its URI), a date time stamp for when the reading applies and a numeric value. The set of readings is updated every 15 minutes, but the individual measures may be updated less frequently than this.
plot_measure_readings( x, today = FALSE, start_date = NULL, end_date = NULL, since = NULL, limit = NULL, show_max = TRUE, show_high = TRUE, show_low = TRUE )
x |
Measure URI. |
today |
Return all the readings taken today for each included measure. |
start_date, end_date |
Return the readings taken on the specified range of days for each included measure, up to the specified limit. |
since |
Return the readings taken since the given date time (not inclusive), up to the specified limit. Will accept a simple date value such as 2016-09-07 which will be interpreted as 2016-09-07T:00:00:00Z. |
limit |
Return a maximum of these items from the list. By default the readings API endpoints have a limit of 500 items, this can be modified by providing an explicit limit value up to a hard limit of 10000 items. |
show_max |
Where available, show max on record as reference line on chart. |
show_high |
Where available, show typical high as reference line on chart. |
show_low |
Where available, show typical low as reference line on chart. |
ggplot2 plot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.