enum2grid: Generate a 2x2 ggplot2 grid

Description Usage Arguments Value Examples

View source: R/visualize.R

Description

Create an a4 grid (see Verizon's Data Breach Inves 2012) and return a ggplot object. Replicates the plota4 function from verisr which referenced deprecated code from data.table.

Usage

1
enum2grid(data, params)

Arguments

data

A data frame object, typically converted from the VCDB JSON format

params

Character or vector of characters representing one or more fields of interest (enumeration)

Value

a ggplot object

Examples

1
2
enum2grid(vcdb, c("action", "asset.variety"))
enum2grid(vcdb, c("asset.variety", "actor.external.variety"))

onlyphantom/verisr2 documentation built on May 20, 2019, 12:19 p.m.