Description Usage Arguments Value
Produce bar chart (plotly) for single factor frequency data.
1 2 3 4 5 6 7 8 9 10 11 12 | plot_freqs(
table,
xlab,
ylab,
bar_colour,
n,
font_size = 12,
orientation = "v",
break_q_names_col = NULL,
max_lines = 2,
...
)
|
table |
Frequency table (data frame). 2 columns - cateogry names and frequencies. |
xlab |
X axis title |
ylab |
Y axis title |
bar_colour |
Colour name. Defaults to blue (see get_gradient()) |
n |
sample size |
font_size |
minimum font size for the plot (numeric). |
orientation |
plot orientation ("h" = horizontal, "v" = verical). Vertical by default |
break_q_names_col |
applies break_q_names to the column. Not applied by default |
max_lines |
maximum number of lines. Int, defaults to 2/ See carsurvey::break_q_names() |
... |
additional plotly_ly arguments |
bar chart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.