knitr::opts_chunk$set(echo = F, message = F)
1. Histogram: Distribution of Employee Satisfaction Create a
histogram of the satisfaction_level variable. The title should reflect a
key takeaway from the distribution.
- There is a large group of unsatisfied emplpoyees (<.12).
2. Box Plot: Last Evaluation Scores Create a box plot of the
last_evaluation variable. The title should highlight an important
insight about the evaluation scores.
- Slightly more evaluations fell above the middle line, making the
median evaluation 0.2 higher.
3. Comparative Box Plot: Monthly Hours by Department Create a
comparative box plot of average_montly_hours grouped by department. The
title should emphasize a significant difference or pattern among
departments.
- The management department has the highest average of monthly hours
(204), the HR department has the lowest average of monthly hours
(197).
4. Pie Chart of Frequencies: Attrition by Salary Level Create a pie
chart showing the frequency of employee attrition (left) for each salary
category. The title should point out the relationship between salary and
attrition.
- Salary plays a large role in employee attrition. By far, employees
paid a high salary leave less (only 2.3% leave), compared to employees
paid medium (36.9% leave) and low (60.8% leave) salaries.
5. Bar Plot of Averages: Average Satisfaction by Department Create a
bar plot displaying the average satisfaction_level for each department.
The title should highlight a key observation about departmental
satisfaction.
- On average, employees in the management department are the most
satisfied, and employees in the accounting department are the least
satisfied.