Created
February 11, 2022 21:53
-
-
Save CodeMaster7000/16ca2308ba029cb16d8ebcd3c2284161 to your computer and use it in GitHub Desktop.
A 3D pie chart coded in R, displaying the 4 most populous countries in the world.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(plotrix) | |
| x <- c(21, 62, 10,53) | |
| lbl <- c("USA","China","Indonesia","India") | |
| pie3D(x,labels = lbl,explode = 0.1, main = "Pie Chart of Most Populous Countries ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment