Learn R Programming

fusionchartsR (version 1.1.0)

fusionLogo: Adding FusionCharts logo

Description

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

Usage

fusionLogo(
  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

Run this code
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") %>%
  fusionLogo(logoURL = logoURL) %>%
  fusionTheme(theme = "fusion")

Run the code above in your browser using DataLab