View source: R/fusionCaption.R
fusionCaption | R Documentation |
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/caption-and-sub-caption
fusionCaption(
fusionPlot,
caption = "Add a caption here",
captionFont = "Arial",
captionFontSize = "18",
captionFontColor = "#5A5A5A",
captionFontBold = TRUE,
captionOnTop = TRUE,
captionAlignment = c("center", "left", "right")
)
fusionPlot |
fusionPlot object got by |
caption |
Specify the caption of the chart |
captionFont |
Set the caption font family |
captionFontSize |
Set the caption font size (between 0 and 72) |
captionFontColor |
Set the caption font color |
captionFontBold |
Enable caption font to bold |
captionOnTop |
Display the caption at the top of the chart |
captionAlignment |
Specify the horizontal alignment of the caption |
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.