Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Absenteeism at Work The file Absenteeism _ at _ work.csv is posted on Canvas, as well as the documentation Instructions Read the documentation to become
Absenteeism at Work
The file Absenteeismatwork.csv is posted on Canvas, as well as the documentation
Instructions
Read the documentation to become familiar with the meanings of the variablescolumns
Read in the data set using the command
df read.csvAbsenteeismatwork.csvsep;headerTRUE
You will onle need to submit one PDF file, produced by your Rmd file. Include your code, plot
and comments in your Rmarkdown file, so that they are shown in the pdf file.
In each plot, include appropriate title and labels. Include the legend, if appropriate. Also, after
each plot, write a short comment one or two sentence if you see something on the graph, ie if
graph reveals or suggests something about the data. Do not forget to write these comments,
even if you cant say much by looking at the graph in that case, just say that the graph is not
very useful, ie doesnt suggest anything
Use base plot this time, not ggplot
Plot the scatter plot of height vs weight so weight on xaxis including all the nonmissing
data.
Plot the histogram of hours of absences Do not group by ID just treat each absence as one
observation.
Plot the histogram of age of a person corresponding to each absence Do not group by ID just
treat each absence as one observation.
Plot the bar plot of hours by month. So each month is represented by one bar, whose height is
the total number of absent hours of that month.
Plot the box plots of hours by social smoker variable. So you will have two box plots in one
figure. Use the legend, labels, title. Play with colors.
Plot the box plots of hours by social drinker variable. So you will have two box plots in one
figure. Use the legend, labels, title. Play with colors.
When you are done, before submitting, go over the instructions again and for each plot make sure you
met all the requirements.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started