# PlotPolar: Plot Values on a Circular Grid In DescTools: Tools for Descriptive Statistics

## Description

PlotPolar creates a polar coordinate plot of the radius r in function of the angle theta. 0 degrees is drawn at the 3 o'clock position and angular values increase in a counterclockwise direction.

## Usage

 1 2 3 PlotPolar(r, theta = NULL, type = "p", rlim = NULL, main = "", lwd = par("lwd"), lty = par("lty"), col = par("col"), pch = par("pch"), fill = NA, cex = par("cex"), mar = c(2, 2, 5, 2), add = FALSE, ...)

## Arguments

 r a vector of radial data. theta a vector of angular data specified in radians. type one out of c("p","l","h"), the plot type, defined following the definition in plot type. "p" means points, "l" will connect the points with lines and "h" is used to plot radial lines from the center to the points. Default is "p". rlim the r limits (r1, r2) of the plot main a main title for the plot, see also title. lwd a vector of line widths, see par. lty a vector of line types, see par. col The colors for lines and points. Multiple colors can be specified so that each point can be given its own color. If there are fewer colors than points they are recycled in the standard fashion. Lines will all be plotted in the first colour specified. pch a vector of plotting characters or symbols: see points. fill fill color, defaults to NA (none). cex a numerical vector giving the amount by which plotting characters and symbols should be scaled relative to the default. This works as a multiple of par("cex"). NULL and NA are equivalent to 1.0. mar A numerical vector of the form c(bottom, left, top, right) which gives the number of lines of margin to be specified on the four sides of the plot. add defines whether points should be added to an existing plot. ... further arguments are passed to the plot command.

## Details

The function is rather flexible and can produce quite a lot of of different plots. So is it also possible to create spider webs or radar plots.

## Author(s)

Andri Signorell <andri@signorell.net>