powered by
Use these options in ax_plotOptions().
ax_plotOptions()
bar_opts( horizontal = NULL, endingShape = NULL, columnWidth = NULL, barHeight = NULL, distributed = NULL, colors = NULL, dataLabels = NULL, ... )
A list of options that can be used in ax_plotOptions().
list
Logical. This option will turn a column chart into a horizontal bar chart.
Available Options: "flat" or "rounded".
"flat"
"rounded"
In column charts, columnWidth is the percentage of the available width in the grid-rect.
In horizontal bar charts, barHeight is the percentage of the available height in the grid-rect.
Logical. Turn this option to make the bars discrete. Each value indicates one bar per series.
A list of parameters.
List with fields position (available options: "top", "center" or "bottom")
position
"top"
"center"
"bottom"
Additional parameters.
data("mpg", package = "ggplot2") apex(mpg, aes(manufacturer)) %>% ax_plotOptions( bar = bar_opts( endingShape = "rounded", columnWidth = 100, distributed = TRUE ) )
Run the code above in your browser using DataLab