Library: | plot |
See also: | grpie dispcoxcomb grcoxcomb |
Quantlet: | plotcoxcomb | |
Description: | shows a coxcomb plot, a special pie chart, where the frequency of an observed attribute is proportional to the area of the corresponding segment and the angles of the segments are all equal. Consequently, the frequency of the attribute is proportional to the square of the radius of the segment. |
Usage: | plotcoxcomb (x, {col,} {text}) | |
Input: | ||
x | n x p matrix of user-defined data which should be investigated | |
col | p x 1 matrix defining the color of the plot | |
text | n x 1 matrix containing the text used to describe the segments of the plot |
library("plot") x=readm("crimwar") col=#(0,1,4) plotcoxcomb(x.double,col,x.text)
This coxcomb plot contains one of the original data sets used by F. Nightingale. It shows the number of soldiers who died during the Crimean war from injuries caused by war (black), due to diseases caused by the lack of hygienics (blue) and because of other causales (red).