create_png: Creates a PNG file graphic of a scorecard data frame.

Description Usage Arguments

View source: R/create_png.R

Description

Creates a PNG file graphic of a scorecard data frame.

Usage

1
2
3
4
5
6
7
create_png(df, scorecard_dir = stop("Pass scorecard directory"), name = "",
  title = "", file_date = lubridate::today(), highlight_rank = TRUE,
  fill_activated = "#1ec322", fg_activated = "black",
  fill_candidate = "#fedd32", fg_candidate = "black",
  fill_deactivated = "#fd696a", fg_deactivated = "black",
  fill_retired = "#6496fc", fg_retired = "white", fill_rank = "#1ec322",
  fg_rank = "black")

Arguments

df

scorecard data frame, as from scorecard_produce

scorecard_dir

directory destination for file write

name

file name body; the function will paste together the file_date, an underscore, and the name with the .png extension to create the complete file name. The file_date is used to facilitate directory sorting.

title

a title appearing above the table, default empty

file_date

a date stamp for the destination file

highlight_rank

whether to highlight rank 1 fields

fill_activated

fill color for activated model cell

fg_activated

foreground color for activated model cell

fill_candidate

fill color for candidate model cell

fg_candidate

foreground color for candidate model cell

fill_deactivated

fill color for deactivated model cell

fg_deactivated

foreground color for deactivated model cell

fill_retired

fill color for retired model cell

fg_retired

foreground color for retired model cell

fill_rank

fill color for rank one outcome cells

fg_rank

foreground color for rank out outcome cells


greatgray/scorecard documentation built on May 17, 2019, 8:34 a.m.