
Last chance! 50% off unlimited learning
Sale ends in
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.
diamondplot(x, bg=gray(0.6), col=rainbow,name="", ...)
A data frame containing numeric values that represent attributes (possibly repeated observations) of data objects. See the example.
The background color for the plot.
The colors for the polygons.
The title for the plot (i.e. main).
additional arguments passed to plot.
nil
# NOT RUN {
data(mtcars)
mysubset<-mtcars[substr(dimnames(mtcars)[[1]],1,1)=="M",c("mpg","hp","wt","disp")]
diamondplot(mysubset)
# }
Run the code above in your browser using DataLab