R Markdown

Required Packages:
readr
stringr
ggplot2

https://myxavier-my.sharepoint.com/:x:/g/personal/bontp_xavier_edu/EUAZppYmjm1NqE_LtvWXWwQB9xu2VX2MVyG4hDXVr0zc9w?download=1

Data Visualization 1

Does a higher % of REM sleep lead to higher sleep efficiency?

As REM sleep percentage increases, sleep efficiency increases

Data Visualization 2

Do age groups sleep for a different amount of time?

More childen sleep for longer compared to adults and seniors. Some adults and seniors have shorter sleep duration than children.

Data Visualization 3

How do exercise and REM sleep vary by gender?

Men who exercise once per week have the highest percentage of REM Sleep, but decrease the more the exercise. Female exercise does not have a large affect on REM Sleep

Data visualization 4

Do alcohol and smoking habits affect sleep duration?

Non-smokers experience better sleep up two 3 drinks, yet see worse sleep after 4-5 drinks. Smokers see a decline in sleep after more than 1 drink.

Data visualization 5

Is there a notable difference between genders in how long each age group sleeps?

There are no major differences in how age groups sleep compared to gender