MyRecentPlot | R Documentation |
Visualise a selected parameter from a Campbell logger file for a given time window starting from the latest timestamp in the data frame. All sensors that measure this parameter on each logger system will be shown. Sensors are identified by their SensorID and logger system ID.
MyRecentPlot(para, hours, data, logger = NA, yscale_min = NA, yscale_max = NA, cartesian = TRUE, sensor.colour = FALSE, ephemeral.time = TRUE, ephemeral.object = ephemeral.times)
para |
Name of the parameter to be visualised. See |
hours |
Number of recent hours over which to visualise data. Starts from last timestamp in the data frame. |
data |
name of the data frame. |
logger |
Only visualise data from the specified logger system. Defaults to NA to use data from all logger systems. |
yscale_min |
Numeric. Lower limit of the y-axis. Defaults to NA to visualise the full range of values. When used, |
yscale_max |
Numeric. Upper limit of the y-axis. Defaults to NA to visualise the full range of values. |
cartesian |
Logical. Discard data outside of the specified y-axis range. Defaults to TRUE. |
sensor.colour |
Logical. Identify each SensorID per logger system with a unique colour. Defaults to TRUE. |
ephemeral.time |
Logical. If FALSE, shading for night time will not be added to the plot. Defaults to TRUE |
ephemeral.object |
Name of the object with sunrise and seunset informationation. If an object name is provided, it has to have the same structure as the output of |
Returns a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.