make plot.osem_measurements() more robust

pull/17/head
noerw 7 years ago
parent f183802b72
commit 51595f1239

@ -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…
Cancel
Save