Client birth dates, gender, and ratings

A problem you will encounter when programming is that sometimes a function you thought would be general enough needs to be changed in some way. Sometimes the right decision is to change the existing function, but other times, the right decision is to create a new function (maybe based on the original one) that can be modified as needed without breaking old code that used it. This happens when the assumptions for the function are not met, and can't be easily accommodated.

In our case, what happens if we want to use the clients data to graph our clients' birth dates using the year in the x axis, month in the y axis, color by gender, and show the rating adjusting the size of the dots? Well, the x axis ...

Get R Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.