plot_bar | R Documentation |
Plot counted of 1 variable using bar graph
plot_bar(
data,
var,
var_desc = TRUE,
lump_prop = 0,
other_level = "Other",
alpha = 0.8,
stat = c("percent", "prop", "count"),
label_geom = c("label", "label_repel", "text", "text_repel"),
label_number = c("percent", "count", "both"),
...
)
data |
A data.frame |
var |
(Quote or Unquote) Categorical variables to plot |
var_desc |
If |
lump_prop |
Proportion that lump levels to "Other" (passed to |
other_level |
Name of the "Other" level |
alpha |
An alpha of |
stat |
(A Character) How y-axis computed ?
|
label_geom |
(A Character) Indicate function of label geom
|
label_number |
(A Character) How to display the label?
|
... |
Passed to selected function of |
A Plot class gg
and ggplot
plot_bar(mtcars, cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.