Description Usage Arguments Examples
View source: R/fusionSubcaption.R
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/caption-and-sub-caption
1 2 3 4 5 6 7 8 | fusionSubcaption(
fusionPlot,
subcaption = "Add a subCaption here",
subcaptionFont = "Arial",
subcaptionFontSize = "14",
subcaptionFontColor = "#999999",
subcaptionFontBold = FALSE
)
|
fusionPlot |
fusionPlot object got by |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.