Library: | graphic |
See also: | grandrews grpcp grcontour3 |
Quantlet: | grsunflower | |
Description: | Generates a sunflower plot. |
Usage: | bp = grsunflower (x, {d, {or, {col}}}) | |
Input: | ||
x | n x dim vector | |
d | dim x 1 binwidth | |
or | dim x 1 origin | |
col | scalar color | |
Output: | ||
bp | composed graphical object |
library("graphic") t = normal(10000, 2) bp = grsunflower(t) d = createdisplay(1,1) show(d, 1, 1, bp)
shows a sunflower plot of 2-dimensional dataset with default binwidth and origin
library("graphic") t = normal(10000, 4) bins=(1|1|1|1) org=(0|0|0|0) bp = grsunflower(t,bins,org,3) d = createdisplay(1,1) show(d, 1, 1, bp)
shows a sunflower plot of 4-dimensional dataset with specified binwidth, origin, and color
library("graphic") t = normal(5000, 3)|(normal(5000,3)+(4~1~0)) bins=(1|1|1) org=(0|0|0) bp = grsunflower(t,bins,org,4) d = createdisplay(1,1) show(d, 1, 1, bp)
shows a sunflower plot of 3-dimensional dataset consisting of a mixture of two normal distributions