diamondplot: Plot multiple variables as polygons on a radial grid

View source: R/diamondplot.R

diamondplotR Documentation

Plot multiple variables as polygons on a radial grid

Description

⁠diamondplot⁠’ displays a plot of polygons on a radial grid representing the relationships between one or more attributes of data objects. For a slightly different style of plot, see the "spiderweb plot" example in ‘⁠radial.plot⁠’.

Usage

 diamondplot(x, bg=gray(0.6), col=rainbow,name="", ...)

Arguments

x

A data frame containing numeric values that represent attributes (possibly repeated observations) of data objects. See the example.

bg

The background color for the plot.

col

The colors for the polygons.

name

The title for the plot (i.e. ‘⁠main⁠’).

...

additional arguments passed to ‘⁠plot⁠’.

Value

nil

Author(s)

Elisa Biancotto

See Also

plot, radial.plot

Examples

 data(mtcars)
 mysubset<-mtcars[substr(dimnames(mtcars)[[1]],1,1)=="M",c("mpg","hp","wt","disp")]
 diamondplot(mysubset)

plotrix/plotrix documentation built on Feb. 19, 2024, 8:16 a.m.