1a. Create a Box Plot for employee satisfaction, split by ‘left’ .

This box plot shows the distribution of employee satisfaction levels, separated by whether employees stayed or left the company

1b. Create box plot for last evaluation, split by ‘left’.

The box plot compares last evaluation scores between employees who stayed and those who left the company.

2.Select Continuous Variables

##                      satisfaction_level last_evaluation number_project
## satisfaction_level           1.00000000       0.1050212     -0.1429696
## last_evaluation              0.10502121       1.0000000      0.3493326
## number_project              -0.14296959       0.3493326      1.0000000
## average_montly_hours        -0.02004811       0.3397418      0.4172106
## time_spend_company          -0.10086607       0.1315907      0.1967859
##                      average_montly_hours time_spend_company
## satisfaction_level            -0.02004811         -0.1008661
## last_evaluation                0.33974180          0.1315907
## number_project                 0.41721063          0.1967859
## average_montly_hours           1.00000000          0.1277549
## time_spend_company             0.12775491          1.0000000

This script selects continuous variables from the dataset and calculates their correlation matrix to examine the relationships between them.

Create the correlogram using corrplot

The correlogram visually represents the correlation coefficients between continuous variables, with circles indicating the strength and direction of relationships, where larger circles signify stronger correlations, and color intensity reflects the degree of correlation.