Learn R Programming

plotrix (version 2.5-2)

pie.labels: Place labels on a pie chart

Description

Places labels on a pie chart

Usage

pie.labels(x,y,angles,labels,radius=1,bg="white",border=TRUE,...)

Arguments

x,y
x and y position of the center of the pie chart
angles
A numeric vector representing angles in radians. This is the return value of floating.pie.
labels
Text strings to label each sector.
radius
The radius at which to place the labels in user units. The default is 1.
bg
The color of the rectangles on which the labels are displayed.
border
Whether to draw borders around the rectangles.
...
Arguments passed to boxed.labels.

Value

  • nil

See Also

floating.pie, boxed.labels

Examples

Run this code
pieval<-c(2,4,6,8)
 plot(1:5,type="n",axes=FALSE)
 box()
 bisect.angles<-floating.pie(3,3,pieval)
 pie.labels(3,3,bisect.angles,c("two","four","six","eight"))

Run the code above in your browser using DataLab