fusionAnchors: Adding FusionCharts anchors

Description Usage Arguments Examples

View source: R/fusionAnchors.R

Description

https://www.fusioncharts.com/dev/chart-guide/chart-configurations/anchors-and-lines

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

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

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