Skip to contents

Usage

fusionAnchors(
  fusionPlot,
  drawAnchors = TRUE,
  showvalues = FALSE,
  anchorSides = "0",
  anchorRadius = "3",
  anchorAlpha = "100",
  anchorBorderThickness = "1",
  anchorBorderColor = "#5a5a5a",
  anchorBgColor = "#ffffff",
  anchorBgAlpha = "100",
  anchorImageAlpha = "100",
  anchorImageScale = "150"
)

Arguments

fusionPlot

fusionPlot object got by fusionPlot()

drawAnchors

Show the anchors

showvalues

Show the values of the anchors

anchorSides

Specify the number of sides to define the shape of the anchor

anchorRadius

Set the radius of the anchor

anchorAlpha

Set the transparency of the anchor

anchorBorderThickness

Set the thickness of the anchor border

anchorBorderColor

Set the hex code for anchor border color

anchorBgColor

Set the hex code for anchor background color

anchorBgAlpha

Set the transparency of the anchor background

anchorImageAlpha

Set the transparency of the image

anchorImageScale

Set the scale of the image

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 = "line") %>%
fusionAnchors(anchorRadius = "6", anchorBorderThickness = "2") %>%
fusionTheme(theme = "fusion")