mirror of
https://github.com/sensebox/opensensmapr
synced 2025-02-21 13:23:57 +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, ...) {
|
plot.osem_measurements = function (x, ...) {
|
||||||
oldpar = par()
|
oldpar = par()
|
||||||
par(mar = c(2,4,1,1))
|
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)
|
par(mar = oldpar$mar)
|
||||||
invisible(x)
|
invisible(x)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue