Pie Chart In R
Pie Chart In R. In this post, we'll show how to use this package to create a basic pie chart in R. Syntax The basic syntax for creating a pie-chart using the R is − pie (x, labels, radius, main, col, clockwise) Following is the description of the parameters used − The code for a pie chart in R is as follows.
In this post, we'll show how to use this package to create a basic pie chart in R.
Syntax: pie (x, labels, col, main, radius) You can change the start angle of the pie chart with the init.angle parameter.
R Programming Language uses the function pie() to create pie charts. Adding Data R - Pie Charts. Syntax: pie(x, labels, radius, main, col, clockwise) Parameters: x: This parameter is a vector that contains the numeric values which are used in the pie chart. labels: This parameter gives the description to the slices in pie chart.
Rating: 100% based on 788 ratings. 5 user reviews.
Thomas Branstetter
Thank you for reading this blog. If you have any query or suggestion please free leave a comment below.
0 Response to "Pie Chart In R"
Post a Comment