Usage
fusionSubcaption(
fusionPlot,
subcaption = "Add a subCaption here",
subcaptionFont = "Arial",
subcaptionFontSize = "14",
subcaptionFontColor = "#999999",
subcaptionFontBold = FALSE
)
Arguments
- fusionPlot
fusionPlot object got by
fusionPlot()
- subcaption
Specify the subcaption of the chart
- subcaptionFont
Set the subcaption font family
- subcaptionFontSize
Set the subcaption font size (between 0 and 72)
- subcaptionFontColor
Set the subcaption font color in hex code
- subcaptionFontBold
Enable subcaption font to bold
Examples
library(fusionchartsR)
mtcars %>%
fusionPlot(
x = "cyl",
y = "mpg",
type = "boxandwhisker2d"
) %>%
fusionCaption(caption = "Caption on the left", captionAlignment = "left") %>%
fusionSubcaption(subcaption = "subcaption too") %>%
fusionPalette(palettecolors = c("#5D62B5", "#979AD0")) %>%
fusionTheme(theme = "fusion")