Skip to contents

Usage

fusionDiv(
  fusionPlot,
  adjustDiv = FALSE,
  numDivLines = "5",
  divLineColor = "#5a5a5a",
  divLineAlpha = "10",
  divLineDashed = FALSE,
  divLineDashLen = "5",
  divLineDashGap = "6",
  numVDivLines = "5",
  vDivLineColor = "#F2F2F2",
  vDivLineThickness = "1",
  vDivLineAlpha = "100",
  vDivLineDashed = FALSE,
  vDivLineDashLen = "5",
  vDivLineDashGap = "3",
  showAlternateHGridColor = FALSE,
  alternateHGridColor = "#5a5a5a",
  alternateHGridAlpha = "1",
  showAlternateVGridColor = FALSE,
  alternateVGridColor = "#5a5a5a",
  alternateVGridAlpha = "3"
)

Arguments

fusionPlot

fusionPlot object got by fusionPlot()

adjustDiv

Enable the automatic adjustment of horizontal lines

numDivLines

Set the number of hozitontal lines

divLineColor

Specify the hex code for the color of the hozitontal lines

divLineAlpha

Set the transparency of the horizontal lines

divLineDashed

Display the hozitontal lines as dashed

divLineDashLen

Set the length of each dashed hozitontal lines

divLineDashGap

Set the gap between the dashed hozitontal lines

numVDivLines

Specify the number of vertical lines

vDivLineColor

Set the color of the vertical lines

vDivLineThickness

Set the thickness of the vertical lines

vDivLineAlpha

Set the transparency of the vertical lines

vDivLineDashed

Display the vertical lines as dashed

vDivLineDashLen

Set the length of each dashed vertical lines

vDivLineDashGap

Set the gap between the dashed vertical lines

showAlternateHGridColor

Display the horizontal grid bands

alternateHGridColor

Specify the hex code for the color of the horizontal grid

alternateHGridAlpha

Set the transparency of the horizontal grid

showAlternateVGridColor

Display the vertical grid bands

alternateVGridColor

Specify the hex code for the color of the vertical grid

alternateVGridAlpha

Set the transparency of the vertical grid

Examples

library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260,180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "column2d") %>%
fusionDiv(divLineColor = "#6699cc", divLineAlpha = "60", divLineDashed = TRUE) %>%
fusionTheme(theme = "fusion")