How to make graph animations with R

In this post, I will show how to combine a series of plots into a GIF file using the animation package in R.

In this example, I will create a GIF of horizontal bar plots showing how the proportion of men and women have changed in various occupation categories in Canada. Although I will show how to generate the results, I will leave the analysis for another post – this post is just the Data and R code.

Continue reading

Income inequality in Canada: Part 6 – gender and age

For my next step in looking at income inequality in Canada, I thought it would be interesting to look at average wages with respect to age and gender.  It would have been nice to include level-of-education and number of years of work experience (rather than just having the age of the individual), but I was unable to find a dataset with all these properties.  I did find some interesting data regarding education-level and escaping from poverty, but that’s for another post.

Today, I will show the overall results for Canada and the provinces.  In following days, I will publish more detailed results for the individual provinces which will show average wages for the different categories of occupation.

Continue reading