create_treemap: generic businessplot function

View source: R/create_treemap.R

create_treemapR Documentation

generic businessplot function

Description

Creates a general plot of the data.

Usage

create_treemap(
  file,
  index,
  quantity,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_color
)

Arguments

file

A csv file with the source data

index

Name of the index column from the file you want to plot

quantity

Put True if you want to plot a horizontal bar plot, False for vertical plot.

primary_color

First color for bar plot

secondary_color

Second color for bar plot

tertiary_color

Third color for bar plot

quaternary_color

Fourth color for bar plot

quinary_color

Fifth color for bar plot

senary_color

Sixth color for bar plot

Details

This function creates a plot based on the format of the data and this can be: treemap

Value

A graphical plot

Author(s)

Isolde Boussauw

Examples

  ## Not run: 
     create_treemap("testdata.csv",
"Year", "Quota",
"#004D9A", "#002142", "#0069D2",
"#0180FF", "#004D9A", "#002142")
  
## End(Not run)




yForecasting/businessplots documentation built on Jan. 8, 2025, 6:26 p.m.