Description Usage Arguments Examples
ggquik has specific standards for plots, and
quik_bars
helps your plot follow these.
1 2 3 4 5 |
df |
The data frame containing plot data |
dimension |
Usually the x-axis, values like "quarter" or "account type" |
measure |
The column containing numerical values to be plotted |
groups |
If a stacked or dodged bar, the column containing the groups |
position |
If groups, whether to |
text_size |
A numeric. The size of the text within the bars (default is 3) |
alt_text_size |
A numeric. The size of the alternative text (default is 3) |
alt_label |
The column containing an alternate label (if any) |
facet_by |
The column to add facets to the plot (if necesary) |
background |
If using |
flip_plot |
A logical. Should the plot coordinates be flipped? |
dim_breaks |
A vector of specific dimensions values that should be labeled. |
palette_type |
A string. Allowed values are |
colors |
A string. What color should be used for the bars (e.g. "gray", "red", "dark red", "blue", "dark blue", "light blue", gold", "green", "purple", "teal") |
currency |
A string, usually |
measure_unit |
A string. Can be |
measure_decimal |
An integer. The number of decimal places to show. Default is 0. |
v.just |
A numeric. The vertical adjustment for the text. |
text_cutoff |
A number. If text values below a certain number should not be included. |
... |
Additional parameters to pass on it facet_wrap (e.g. scales = free, ncol = 1) |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.