View source: R/plotting_utilities.R
font | R Documentation |
Creates a list of font settings for plotting with cvms plotting functions.
Some arguments can take either the value to use directly OR a function that takes one argument (vector with the values to set a font for; e.g., the counts, percentages, etc.) and returns the value(s) to use for each element. Such a function could for instance specify different font colors for different background intensities.
NOTE: This is experimental and could change.
font(
size = NULL,
color = NULL,
alpha = NULL,
nudge_x = NULL,
nudge_y = NULL,
angle = NULL,
family = NULL,
fontface = NULL,
hjust = NULL,
vjust = NULL,
lineheight = NULL,
digits = NULL,
prefix = NULL,
suffix = NULL
)
size , color , alpha , nudge_x , nudge_y , angle , family , fontface , hjust , vjust , lineheight |
Either the value to pass directly to
|
digits |
Number of digits to round to. If negative, no rounding will take place. |
prefix |
A string prefix. |
suffix |
A string suffix. |
List of settings.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other plotting functions:
dynamic_font_color_settings()
,
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.