1. Using the HR_comma_sep dataset, create a pie chart for the variable sales.

This illustrates the proportion of sales contributions from different departments. ‘sales department’ having the largest share of 27.6%.

2. Using the HR_comma_sep dataset, create a pie chart for the variable salary.

The majority of salaries fall into the ‘medium’ and ‘low’ categories, with only a small fraction in the ‘high’ category