Displaying 3 results from an estimated 3 matches for "no_exercise".
2023 Oct 30
1
Missing shapes in legend with scale_shape_manual
Hello,
I'm trying to plot a graph of blood glucose versus date. I also record
conditions, such as missing the previous night's medications, and
missing exercise on the previous day. My data looks like:
> b2[68:74,]
# A tibble: 7 ? 5
Date Time bg missed_meds no_exercise
<date> <time> <dbl> <lgl> <lgl>
1 2023-10-17 08:50 128 TRUE FALSE
2 2023-10-16 06:58 144 FALSE FALSE
3 2023-10-15 09:17 137 FALSE TRUE
4 2023-10-14 09:04 115 FALSE FALSE
5 2023-10-13 08:44...
2023 Oct 31
0
Missing shapes in legend with scale_shape_manual
...-13', '2023-10-12', '2023-10-11')
Time <- c('08:50', '06:58', '09:17', '09:04', '08:44', '08:55', '07:55')
bg <- c(128, 144, 137, 115, 136, 122, 150)
missed_meds <- c(TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE)
no_exercise <- c(FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE)
b2 <- data.frame(Date, Time, bg, missed_meds, no_exercise)
b2$Date <- as.Date(b2$Date)
# add "status" columns, could also be defined as factor.
b2$medStat <- c("missed_meds",NA, NA, NA, NA, NA, "missed_meds&qu...
2023 Oct 31
0
Missing shapes in legend with scale_shape_manual
...', '2023-10-11')
> Time <- c('08:50', '06:58', '09:17', '09:04', '08:44', '08:55',
> '07:55')
> bg <- c(128, 144, 137, 115, 136, 122, 150)
> missed_meds <- c(TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE)
> no_exercise <- c(FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE)
>
> b2 <- data.frame(Date, Time, bg, missed_meds, no_exercise)
>
> b2$Date <- as.Date(b2$Date)
> # add "status" columns, could also be defined as factor.
> b2$medStat <- c("missed_meds",NA, NA, NA...