File: seats.Rd

package info (click to toggle)
r-cran-plotrix 3.8-4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,588 kB
  • sloc: makefile: 6
file content (22 lines) | stat: -rwxr-xr-x 733 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\name{seats}
\alias{seats}
\title{Arrange N seats in M semicircular rows}
\description{Compute seat positions in a semicircular parliament}
\usage{seats(N, M, r0 = 2.5)}
\arguments{
 \item{N}{Total number of seats.}
 \item{M}{Number of semicircular arcs on which to distribute the seats.}
 \item{r0}{Radius of the inner arc in user units.}
}
\value{
 A data frame including:
 \item{x}{The x positions of the seats to be plotted on semi-circular
  arcs.}
 \item{y}{The y positions of the seats to be plotted on semi-circular
  arcs.}
 \item{r}{The row numbers for each seat.}
 \item{theta}{The angle of each seat, going from pi to zero radians.}
}
\author{Duncan Murdoch and Barry Rowlingson}
\seealso{\link{election}}
\keyword{misc}