make_subtotal_plt | R Documentation |
make_subtotal_plt() is a Make function that creates a new R object. Specifically, this function implements an algorithm to make subtotal plot. The function returns Subtotal (a plot).
make_subtotal_plt(
data_tb,
var_nm_1L_chr,
x_label_1L_chr,
legend_position_1L_chr = "none",
legend_sclg_1L_dbl = 1,
label_fill_1L_chr = NULL,
round_var_nm_1L_chr = "round",
axis_text_sclg_1L_dbl = 1,
axis_title_sclg_1L_dbl = 1,
use_bw_theme_1L_lgl = T,
y_label_1L_chr = "Percentage",
y_scale_scl_fn = scales::percent
)
data_tb |
Data (a tibble) |
var_nm_1L_chr |
Variable name (a character vector of length one) |
x_label_1L_chr |
X label (a character vector of length one) |
legend_position_1L_chr |
Legend position (a character vector of length one), Default: 'none' |
legend_sclg_1L_dbl |
Legend scaling (a double vector of length one), Default: 1 |
label_fill_1L_chr |
Label fill (a character vector of length one), Default: NULL |
round_var_nm_1L_chr |
Round variable name (a character vector of length one), Default: 'round' |
axis_text_sclg_1L_dbl |
Axis text scaling (a double vector of length one), Default: 1 |
axis_title_sclg_1L_dbl |
Axis title scaling (a double vector of length one), Default: 1 |
use_bw_theme_1L_lgl |
Use black and white theme (a logical vector of length one), Default: T |
y_label_1L_chr |
Y label (a character vector of length one), Default: 'Percentage' |
y_scale_scl_fn |
Y scale scale (a function), Default: scales::percent |
Subtotal (a plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.