Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

diamondplot

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

Examples

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

plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.