mirror of
https://github.com/sensebox/opensensmapr
synced 2025-02-20 20:23:58 +01:00
show units in measurements plot
This commit is contained in:
parent
3ed57a4c49
commit
3f46a52b3c
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
#' @export
|
||||
plot.osem_measurements = function (x, ...) {
|
||||
# TODO: group/color by sensor_id
|
||||
plot(value~createdAt, x, col = x$sensorId, ...)
|
||||
oldpar = par()
|
||||
par(mar = c(2,4,1,1))
|
||||
plot(value~createdAt, x, col = x$sensorId, xlab = NA, ylab = x$unit[1], ...)
|
||||
par(mar = oldpar$mar)
|
||||
invisible(x)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue