mirror of
https://github.com/sensebox/opensensmapr
synced 2025-02-20 20:23:58 +01:00
make plot.osem_measurements() more robust
This commit is contained in:
parent
f183802b72
commit
51595f1239
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
plot.osem_measurements = function (x, ...) {
|
||||
oldpar = par()
|
||||
par(mar = c(2,4,1,1))
|
||||
plot(value~createdAt, x, col = x$sensorId, xlab = NA, ylab = x$unit[1], ...)
|
||||
plot(value~createdAt, x, col = factor(x$sensorId), xlab = NA, ylab = x$unit[1], ...)
|
||||
par(mar = oldpar$mar)
|
||||
invisible(x)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue