plot_gunsales: Base Plots for gunsales analysis

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

View source: R/plot.R

Description

This function creates (base graphics) plots for gunsales analysis.

Usage

1
plot_gunsales(df, savePlots = 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, 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()
  plot_gunsales(gs)

## End(Not run)

gunsales documentation built on May 2, 2019, 7:55 a.m.