ggplot_gunsales: ggplot2 plots for gunsales analysis

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function creates (ggplot2) plots for gunsales analysis.

Usage

1
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

1
2
3
4
5
## Not run: 
  gs <- analysis()
  ggplot_gunsales(gs)

## End(Not run)

NYTimes/gun-sales documentation built on May 7, 2019, 6:04 p.m.