File: pie.labels.Rd

package info (click to toggle)
r-cran-plotrix 3.2-6-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,136 kB
  • sloc: makefile: 3
file content (36 lines) | stat: -rwxr-xr-x 1,159 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{pie.labels}
\alias{pie.labels}
\title{ 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{
 \item{x,y}{x and y position of the center of the pie chart}
 \item{angles}{A numeric vector representing angles in radians. This is
  the return value of \samp{floating.pie}.}
 \item{labels}{Text strings to label each sector.}
 \item{radius}{The radius at which to place the labels in user units. The
  default is 1.}
 \item{bg}{The color of the rectangles on which the labels are displayed.}
 \item{border}{Whether to draw borders around the rectangles.}
 \item{...}{Arguments passed to \samp{boxed.labels}.}
}
\value{nil}
\note{
 Remember that \samp{x} and \samp{y} specify the center of the pie chart and
 that the label positions are specified by angles and radii from that 
 center.
}
\author{Jim Lemon}
\seealso{\link{floating.pie}, \link{boxed.labels}}
\examples{
 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"))
}
\keyword{misc}