plot_bars_facet2D | R Documentation |
Plot count of 2 variables (2D) into bar graph with facet wrap.
plot_bars_facet2D(
data,
var,
var_facet,
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 |
(Quoted or Unquoted) Variable to count in each facet |
var_facet |
(Quoted or Unquoted) Variable intended to get facet wrapped (grouping variable) |
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_bars_facet2D(mtcars, cyl, gear, color = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.