Answered step by step
Verified Expert Solution
Link Copied!

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 Absenteeism_at_work.csv is posted on Canvas, as well as the documentation
Instructions
Read the documentation to become familiar with the meanings of the variables/columns.
Read in the data set using the command
df = read.csv("Absenteeism_at_work.csv",sep=";",header=TRUE)
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, i.e. 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, i.e. doesnt suggest anything).
Use base plot this time, not ggplot2.
1
1. Plot the scatter plot of height vs. weight (so, weight on x-axis) including all the (non-missing)
data.
2. Plot the histogram of hours of absences. Do not group by ID, just treat each absence as one
observation.
3. Plot the histogram of age of a person corresponding to each absence. Do not group by ID, just
treat each absence as one observation.
4. 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.
5. 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.
6. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago