Feng Tian
Feng Tian

Reputation: 1589

How to use R to plot a pie plot with different radius?

For example,

pie(1:3)

But the radius is constant.

How to make the pie plot which the radius is 1,2,3 respectively?

Upvotes: 0

Views: 1590

Answers (1)

discipulus
discipulus

Reputation: 2715

Check radial.pie function in plotrix package

install.packages("plotrix")
library(plotrix)
radial.pie(c(1,2,3), labels=c("One", "Two", "Three"), radlab=TRUE)

would produce following figureenter image description here

Upvotes: 2

Related Questions