fusionPlot: Create new charts

View source: R/fusionPlot.R

fusionPlotR Documentation

Create new charts

Description

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

Usage

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

Arguments

data

Default dataset to use

x, y

character name of variable

type

type of chart

numberSuffix

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

Details

A 2x2 confusion matrix can be displayed using 'type = "confusionMatrix"'.

Examples

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")


alexym1/fusionChartsR documentation built on Feb. 2, 2024, 6:56 a.m.