View source: R/plotting_utilities.R
sum_tile_settings | R Documentation |
Creates a list of settings for plotting the column/row sums
in plot_confusion_matrix()
.
The `tc_`
in the arguments refers to the total count tile.
NOTE: This is very experimental and will likely change.
sum_tile_settings(
palette = NULL,
label = NULL,
tile_fill = NULL,
font_color = NULL,
tile_border_color = NULL,
tile_border_size = NULL,
tile_border_linetype = NULL,
tc_tile_fill = NULL,
tc_font_color = NULL,
tc_tile_border_color = NULL,
tc_tile_border_size = NULL,
tc_tile_border_linetype = NULL,
intensity_by = NULL,
intensity_lims = NULL,
intensity_beyond_lims = NULL
)
palette |
Color scheme to use for sum tiles.
Should be different from the Passed directly to Try these palettes: Alternatively, pass a named list with limits of a custom gradient as e.g.
Note: When |
label |
The label to use for the sum column and the sum row. |
tc_tile_fill , tile_fill |
Specific background color for the tiles. Passed as If specified, the |
tc_font_color , font_color |
Color of the text in the tiles with the column and row sums. |
tc_tile_border_color , tile_border_color |
Color of the tile borders. Passed as |
tc_tile_border_size , tile_border_size |
Size of the tile borders. Passed as |
tc_tile_border_linetype , tile_border_linetype |
Linetype for the tile borders. Passed as |
intensity_by |
The measure that should control the color intensity of the tiles.
Either For 'normalized', the color limits become For the 'log*' and 'arcsinh' versions, the log/arcsinh transformed counts are used. Note: In 'log*' transformed counts, 0-counts are set to '0', why they won't be distinguishable from 1-counts. |
intensity_lims |
A specific range of values for the color intensity of
the tiles. Given as a numeric vector with This allows having the same intensity scale across plots for better comparison of prediction sets. |
intensity_beyond_lims |
What to do with values beyond the
|
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.