Exercise to determine how the mean of divisors of integers in a series do or do not converge
Extract from the docs
The mostattributes() built-in with a minimal example of adding metadata to a data frame, now preferred over using an S4 class to create a "slot" for metadata to travel with an associated data frame slot.
The layering provided by ggplot allows breaking out subsets to highlight differences more easily than by looking only at aggregate data. In this example, police death data is further broken out by states voting Republican and Democrat in the 2012 presidential election.
The importance of transforming raw counts to some other measure, such as ratios, is illustrated with an example showing police caused deaths
Link to large file
Extracting postal codes of state names and their geographic coordinates is straightforward, as is plotting. A few states require manual adjustments.
This code sample moves the states of Rhode Island and Delaware and the District of Columbia offshore to leave room for their labelling and, in the case of DC, to allow for its enlargement (future).
Procedure to produce compact outline map of the United States with scaled and relocated outlines of Alaska and Hawaii
A step-by-step tutorial for preparing thematic maps using ggplot2 and other packages, including importing shapefile base maps, extracting geographic coordinates, adding user data by geographic unit, plotting, adding a projection, controlling breaks and colors.