fusionMultiPlot: Create new multiple charts

Description Usage Arguments Examples

View source: R/fusionMultiPlot.R

Description

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

Usage

1
2
3
4
5
6
7
8
fusionMultiPlot(
  data,
  x,
  y,
  col = NULL,
  type = "msstepline",
  numberSuffix = NULL
)

Arguments

data

Default dataset to use

x, y

character name of variable

col

define seriesname 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
 8
 9
10
11
12
13
14
15
16
17
library(fusionchartsR)

# Multiple charts
new.data <- data.frame(
label = rep(x = c(2012:2016), times = 2),
seriesname = c(rep("iOS App Store", 5), rep("Google Play Store", 5)),
values = c(1:10)
)

new.data %>%
fusionMultiPlot(
x = "label",
y = "values",
col = "seriesname",
type = "mscolumn2d",
) %>%
fusionTheme(theme = "fusion")

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