YYYY-MM-DD

Analysis of Jesse’s Time

The products of this analysis are the two plots at the end. The R code is included for reference.

This analysis is a tool to quantify and analyze Jesse’s use of time. It objectively reveals both the absolute and relative importance of each of Jesse’s activities assuming importance is proportional to time spent. Each week’s activities are plotted side by side on the same scale with a fixed total time available of 168hrs per week (7days/wk * 24hrs/day = 168hrs/wk).

This analysis makes use of the tidyverse package in R.

library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.2     ✔ readr     2.1.4
## ✔ forcats   1.0.0     ✔ stringr   1.5.0
## ✔ ggplot2   3.4.2     ✔ tibble    3.2.1
## ✔ lubridate 1.9.2     ✔ tidyr     1.3.0
## ✔ purrr     1.0.1     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Data is entered at the end of each week as Jesse reports his actual times spent.

JesseTime <- data.frame(week=c(1,2), start=c(168,168), school=c(40,40),
                        sleep=c(56,56), meals=c(7,7), travel=c(3,3),
                        hygiene=c(3.5,3.5), tennis=c(13,14), violin=c(10,9),
                        work=c(5.5,5.5), hmwrk=c(0,0))

The calculated column called “other” is the difference between time available, and the sum of Jesse’s reported times in each listed activity. This key variable balances the scales and enables meaningful interweekly comparisons.

JesseTime <- mutate(JesseTime, other = start-school-sleep-meals-travel-hygiene-tennis-violin-work-hmwrk)

JesseTimeLong <- pivot_longer(JesseTime, cols=c(tennis, violin, work, other),
                              names_to = "name", values_to = "value")
JesseTimeLong$name <- factor(JesseTimeLong$name,
                             levels=c("sleep","school","violin","hmwrk",
                                      "tennis","work","meals","hygiene","travel",
                                      "other"))

g <- ggplot(JesseTimeLong, aes(x=week,y=value))
plot1 <- g+geom_bar(stat = "identity",fill = "green")+xlab("Fall 2023 Week Number")+
  ylab("Time Spent (hrs)")+
  facet_wrap(~name,ncol=5)+
  scale_x_continuous(breaks = c(1,2), labels=c(1,2))+
  scale_y_continuous(breaks = c(0,5,10,15,20,25,30,35,40,45,50),
                     labels=c("0","5","10","Violin\nTarget",20,25,30,35,40,45,50))+
  ggtitle("Jesse's Discretionary Time")+
  geom_hline(yintercept=15, linetype="dashed", color = "red", linewidth=1)+
  theme(plot.margin = unit(c(1,3,1,1), "lines"))+
  theme(axis.text=element_text(size=10))+
  geom_text(aes(label = value), vjust = 0)+
  theme(strip.text = element_text(size = 10))

JesseTimeLong2 <- pivot_longer(JesseTime, cols=-c(week,start), names_to = "name",
                               values_to="value")
JesseTimeLong2$name <- factor(JesseTimeLong2$name,
                             levels=c("sleep","school","violin","hmwrk",
                                      "tennis","work","meals","hygiene","travel",
                                      "other"))
g2 <- ggplot(JesseTimeLong2, aes(x=week,y=value))
plot2 <- g2+geom_bar(stat="identity",fill = "green")+xlab("Fall 2023 Week Number")+
  ylab("Time Spent (hrs)")+
  facet_wrap(~name,ncol=10)+
  scale_x_continuous(breaks = c(1,2), labels=c(1,2))+
  scale_y_continuous(breaks = c(0,5,10,15,20,25,30,35,40,45,50),
                     labels=c("0","5","10","Violin\nTarget",20,25,30,35,40,45,50))+
  ggtitle("Jesse's Total Time")+
  geom_hline(yintercept=15, linetype="dashed", color = "red", linewidth=1)+
  theme(plot.margin = unit(c(1,3,1,1), "lines"))+
  theme(axis.text=element_text(size=9))+
  geom_text(aes(label = value), vjust = 0)+
  theme(strip.text = element_text(size = 10))

Products

Information for filling in a weeky planner. Comparing the largest variables that comprise Jesse’s discretionary time. Sums may change from week to week.

All-inclusive breakdown of how Jesse spends time during the fall 2023 academic semester. Activities are in the anticipated order of importance. Each week sums to 7*24hrs =168hrs.