fusionSubcaption: Adding FusionCharts subcaption

Description Usage Arguments Examples

View source: R/fusionSubcaption.R

Description

https://www.fusioncharts.com/dev/chart-guide/chart-configurations/caption-and-sub-caption

Usage

1
2
3
4
5
6
7
8
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

 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") 

fusionchartsR documentation built on Dec. 21, 2021, 1:07 a.m.