piechart | R Documentation |
Creates a pie chart of the data.
piechart(
file,
main,
pie_label,
pie_data_label,
primary_color,
secondary_color,
tertiary_color,
quaternary_color,
quinary_color,
senary_color
)
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 |
This function creates a pie chart based on a column of a file with data.
A pie chart
Ruben Vanhecke
## Not run:
piechart(
"testdata.csv",
"Year", "Quota",
"#004D9A", "#002142",
"#0069D2", "#0180FF",
"#4FA7FF", "#A7D3FF")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.