fusionPlot: Create new charts

Description Usage Arguments Examples

View source: R/fusionPlot.R

Description

Main function to make interactive charts. Check all charts at https://www.fusioncharts.com/charts

Usage

1
fusionPlot(data, x, y, type = "column2d", numberSuffix = NULL)

Arguments

data

Default dataset to use

x, y

character name of variable

type

See 'available_charts()'

numberSuffix

Specify the suffix for all the Y-axis values on the chart

Examples

1
2
3
4
5
6
7
library(fusionchartsR)

# Single
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260,180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "pie2d") %>%
fusionTheme(theme = "fusion")

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