View source: R/plotting_utilities.R
| dynamic_font_color_settings | R Documentation |
Creates a list of dynamic font color settings for plotting with cvms plotting functions.
Specify separate colors below and above a given value threshold.
NOTE: This is experimental and will likely change.
dynamic_font_color_settings(
threshold = NULL,
by = "counts",
all = NULL,
counts = NULL,
normalized = NULL,
row_percentages = NULL,
col_percentages = NULL,
invert_arrows = NULL
)
threshold |
The threshold at which the color changes. |
by |
The value to check against |
all |
Set same color settings for all fonts at once. Takes a character vector with two hex code strings (low, high). Example: ‘c(’#000', '#fff')'. |
counts, normalized, row_percentages, col_percentages |
Set color settings for the individual font. Takes a character vector with two hex code strings (low, high). Example: ‘c(’#000', '#fff')'. Specifying colors for specific fonts overrides the settings specified in
|
invert_arrows |
String specifying when to invert the color of the arrow icons based on the threshold.
One of { |
List of settings.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other plotting functions:
font(),
plot_confusion_matrix(),
plot_metric_density(),
plot_probabilities(),
plot_probabilities_ecdf(),
sum_tile_settings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.