1
0
Fork 0
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:
noerw 2017-08-24 13:57:15 +02:00
parent f183802b72
commit 51595f1239

View file

@ -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)
}