search for: daily_valu

Displaying 1 result from an estimated 1 matches for "daily_valu".

Did you mean: daily_values
2010 Jan 03
2
plot question
...nge <- range(1, ncol) yrange <- range(0, max(!is.na(glucose[1:ncol]))) nrecs <- nrow(glucose) colors <- rainbow(nrecs) linetype <- c(1:nrecs) plot(xrange, yrange, type="n", xlab="Measurement moment",  ylab="Glucose (mmol/liter)") for (i in 1: nrecs) {   daily_values <- glucose[i,]   lines(daily_values, type="b", lwd=1.5, lty=linetype[i], col=colors[i]) } So I want to loop over the file and add the plot lines one by one (day by day), but it seems that something's not yet right because nothing appears on the graph. Can anybody give me some p...