attck_map: Generate an ATT&CK heatmap

Description Usage Arguments Value

View source: R/attck-map.R

Description

Generate an ATT&CK heatmap

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
attck_map(
  xdf,
  input = NULL,
  output = NULL,
  matrix = NULL,
  tile_col = "white",
  tile_size = 0.5,
  dark_lab = "white",
  light_lab = "black",
  dark_value_threshold = NULL,
  ...
)

Arguments

xdf

a data frame with tactic, technique and value columns. If no value column exists, then the function will assume you have passed in individual events and will perform a "count" summarization before generating the heatmap.

input, output, matrix

if both are not NULL then they should be what fct_tactic() takes as parameters. Otherwise, the function will assume that the tactic column is already an ordered factor.

tile_col, tile_size

color/size for the tile borders; defaults to "white" and 0.5, respectively.

dark_lab, light_lab

text colors for when they appear on top of a dark or light tile

dark_value_threshold

since you can supply your own fill scale and may use a transformation (e.g. "log10") when doing so, you can specify the cutoff value for when to use dark_lab vs light_lab. If NULL then half of max(value) will be used.

...

passed on to the internal call to ggplot2::geom_text()

Value

a ggplot2 plot object which you can add a fill scale to as well as themeing.


hrbrmstr/attckr documentation built on Aug. 13, 2020, 11:49 a.m.