piechart: pie chart function

View source: R/piechart.R

piechartR Documentation

pie chart function

Description

Creates a pie chart of the data.

Usage

piechart(
  file,
  main,
  pie_label,
  pie_data_label,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_color
)

Arguments

file

A csv file with the source data

main

Title of the pie chart

pie_label

Name of the column of the file with the labels of the pie chart

pie_data_label

Name of the column of the file with the data of the pie chart

primary_color

First color for pie chart

secondary_color

Second color for pie chart

tertiary_color

Third color for pie chart

quaternary_color

Fourth color for pie chart

quinary_color

Fifth color for pie chart

senary_color

Sixth color for pie chart

Details

This function creates a pie chart based on a column of a file with data.

Value

A pie chart

Author(s)

Ruben Vanhecke

Examples

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




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