Library: | graphic |
See also: | grcirclesector |
Quantlet: | grpie | |
Description: | Generates a pie chart from the data. |
Usage: | mypie = grpie (x,[distance]) | |
Input: | ||
x | n x 2 vector the first column contains the data the second column contains the frequencies of | |
distance | n x 1 vector contains distances between sectors and origin | |
Output: | ||
mypie | composed graphical object |
library("graphic") data = 1:5 freqs = 10|2|13|9|6 dist = 0|50|0|0|50 mypie = grpie(data~freqs~dist) d = createdisplay(1,1) show(d, 1, 1, mypie)
shows a pie chart