Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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.

Reference(s):

Link:
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

Note:

Example:
library("plot")
x=readm("crimwar")
col=#(0,1,4)
plotcoxcomb(x.double,col,x.text)

Result:
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).



Author: S. Klinke, L. Richter, 20011129
(C) MD*TECH Method and Data Technologies, 05.02.2006