gunsales (version 0.1.2)

ggplot_gunsales: ggplot2 plots for gunsales analysis

Description

This function creates (ggplot2) plots for gunsales analysis.

Usage

ggplot_gunsales(df, savePlots = FALSE, savePNG = FALSE)

Arguments

df
A data.frame as prepared by the analysis functions.
savePlots
A boolean toggle to indicate if the plots are to be saved in the out/ directory as a single pdf file, with a default of FALSE.
savePNG
A boolean toggle to indicate if the plots are to be saved in the out/ directory as individual png files, with a default of FALSE.

Value

NULL is returned invisibly.

Details

In interactive mode, plot display is paused and the user has to advance by pressing the Return key.

See Also

The NY Times article presenting this analsysi undertaken by this package is at http://www.nytimes.com/interactive/2015/12/10/us/gun-sales-terrorism-obama-restrictions.html?

Examples

Run this code
## Not run: 
#   gs <- analysis()
#   ggplot_gunsales(gs)
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace