#Part 1
It Appears most people have no sleep disorder.
When theme_minimal() is applied to a plot, the background becomes less complex, reducing distractions and drawing attention to the data. To improve readability, viewers are informed of the plot’s information by adding labels via labs() for the plot’s title and axes. It is recommended to increase the text size of the title and axis labels in order to improve legibility, particularly in plots that are scaled down. Moreover, label overlap is avoided by modifying the x-axis text angle using theme(axis.text.x = element_text(angle = 45, hjust = 1)), which is a common problem with lengthy or numerous category names.
## Warning: Removed 4 rows containing missing values (`geom_bar()`).
## Warning: Removed 8 rows containing missing values (`geom_bar()`).
## Warning: Removed 4 rows containing missing values (`geom_bar()`).
## Warning: Removed 8 rows containing missing values (`geom_bar()`).
According to the graphs, women tend to have better sleep quality compared to men. Also according to the graph, men tend to have a variance in their sleep quality as almost all ratings from 3 to 8 precentage vise are male dominated. Women on the other hand have less variance as most the 9 rating is almost completely female.
#Part 2
## `geom_smooth()` using formula = 'y ~ x'
From the plot, it can be deducted that women have more variation when it comes to sleep duration. There is a strong correlation between stress levels and sleep duration for both genders. This relation is inverse. The peek of two graphs are similar but the bottoms of the line graph shows that women have less stress when they have similar durations of sleep.
#Part 3
From this plot, it can be concluded that people with no sleep disorders tend to sleep around 7 to 8 hours a night. People with insomnia tehn do sleep less than 7 hours a night and people with sleep apnia have a big variation of how much sleep they get ranging from 6 to 8 hours.