Creates a PNG file graphic of a scorecard data frame.
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")
|
df |
scorecard data frame, as from |
scorecard_dir |
directory destination for file write |
name |
file name body; the
function will paste together the |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.