Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created February 11, 2022 21:53
Show Gist options
  • Select an option

  • Save CodeMaster7000/16ca2308ba029cb16d8ebcd3c2284161 to your computer and use it in GitHub Desktop.

Select an option

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.
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