fusionLogo: Adding FusionCharts logo

Description Usage Arguments Examples

View source: R/fusionLogo.R

Description

https://www.fusioncharts.com/dev/chart-guide/chart-configurations/loading-external-logo

Usage

1
2
3
4
5
6
7
8
(
  fusionPlot,
  logoURL = "NULL",
  logoAlpha = "40",
  logoScale = "80",
  logoPosition = c("TL", "TR", "BL", "BR", "CC"),
  logoLink = NULL
)

Arguments

fusionPlot

fusionPlot object got by fusionPlot()

logoURL

Specify the URL of the external logo

logoAlpha

Set the transparency of the external logo

logoScale

Set the scale of the external logo (0 to 300)

logoPosition

Specify the position of the external logo

logoLink

Add an external link to the external logo

Examples

1
2
3
4
5
6
7
library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260,180, 115))
logoURL <- "https://static.fusioncharts.com/sampledata/images/Logo-HM-72x72.png"
df %>%
fusionPlot(x = "label", y = "value", type = "doughnut2d") %>%
(logoURL = logoURL) %>%
fusionTheme(theme = "fusion")

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