Learn R Programming

plotrix (version 2.0.3)

pie3D.labels: Display labels on a 3D pie chart

Description

Displays labels on a 3D pie chart.

Usage

pie3D.labels(radialpos,radius=1,height=0.3,theta=pi/6,
  labels,labelcol=par("fg"),labelcex=1.5)

Arguments

radialpos
Position of the label in radians
radius
the radius of the pie in user units
height
the height of the pie in user units
theta
The angle of viewing in radians
labels
The label to display
labelcol
The color of the labels
labelcex
The character expansion factor for the labels

Value

  • nil

Details

pie3D.label displays labels on a 3D pie chart. The positions of the labels may be given as angles in radians (usually the bisector of a pie sector) or explicitly in user units. The latter overrides the calculation of the former.

See Also

pie3D, draw.tilted.sector

Examples

Run this code
pieval<-c(2,4,6,8)
 bisectors<-pie3D(pieval,explode=0.1,main="3D PIE")
 pie3D.labels(bisectors,labels=c("TWO","FOUR","SIX","EIGHT"))

Run the code above in your browser using DataLab