ggplot_gunsales {gunsales}R Documentation

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.

Details

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

Value

NULL is returned invisibly.

Author(s)

Gregor Aisch and Josh Keller wrote the R code; Dirk Eddelbuettel created and maintains the package.

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

## Not run: 
  gs <- analysis()
  ggplot_gunsales(gs)

## End(Not run)

[Package gunsales version 0.1.2 Index]