powered by
Use these options in ax_plotOptions().
ax_plotOptions()
pie_opts( size = NULL, donut = NULL, customScale = NULL, offsetX = NULL, offsetY = NULL, dataLabels = NULL, ... )
A list of options that can be used in ax_plotOptions().
list
Numeric. Custom size of the pie which will override the default size calculations.
List with two fields size (Donut / ring size in percentage relative to the total pie area.) and background (The background color of the pie).
size
background
Numeric. Transform the scale of whole pie/donut overriding the default calculations.
Numeric. Sets the left offset of the whole pie area.
Numeric. Sets the top offset of the whole pie area.
List with field offset (Numeric, Offset by which labels will move outside / inside of the donut area)
offset
Additional parameters.
data("mpg", package = "ggplot2") apex(mpg, aes(cyl), type = "donut") %>% ax_plotOptions( pie = pie_opts( donut = list(size = "90%", background = "#BABABA") ) )
Run the code above in your browser using DataLab