embed_cat_prop_plot {saros} | R Documentation |
Embed Interactive Categorical Plot
Description
Embed Interactive Categorical Plot
Usage
embed_cat_prop_plot(
data,
...,
dep = tidyselect::everything(),
indep = NULL,
colour_palette = NULL,
mesos_group = NULL,
html_interactive = TRUE,
inverse = FALSE,
call = rlang::caller_env()
)
Arguments
data |
Survey data
A data frame (or a srvyr-object) with the columns specified in the chapter_overview 'dep_cat', etc columns. |
... |
Dynamic dots Arguments forwarded to the corresponding functions that create the elements. |
dep , indep |
Variable selections < Columns in |
colour_palette |
Character vector of colour codes. |
mesos_group |
Specific group to compare with
Both the absolute and relative folderpaths are required, as strings. |
html_interactive |
Toggle interactive plot
Whether plot is to be interactive (ggiraph) or static (ggplot2). |
inverse |
Flag, defaults to FALSE. If TRUE, swaps x-axis and faceting. |
call |
Internal call
Both the absolute and relative folderpaths are required, as strings. |
Value
ggplot
Examples
embed_cat_prop_plot(data = ex_survey, dep = b_1:b_3)