GiovineItalia / Gadfly.jl

Crafty statistical graphics for Julia.
http://gadflyjl.org/stable/
Other
1.9k stars 250 forks source link

boxplot outliers #556

Open hanny24 opened 9 years ago

hanny24 commented 9 years ago

I'm trying to hide outliers in boxplot:

x=dataset("lattice", "singer");
x[:OUT] = false;
plot(x, x="VoicePart", y="Height",outliers="OUT",Geom.boxplot)

However, I got following error:

type Data has no field outliers
while loading In[42], in expression starting on line 3

 in set_mapped_data! at /home/hanny/.julia/v0.3/Gadfly/src/Gadfly.jl:256
 in plot at /home/hanny/.julia/v0.3/Gadfly/src/Gadfly.jl:340

Is this a bug or my misunderstanding? Thanks

dcjones commented 9 years ago

I haven't added support for manually specifying outliers yet, I'm afraid. Right now it uses the standard Tukey boxplot rules: fences are median +/- 1.5 times the inter-quartile range, and outliers are anything outside the fences. It should be more customizable though.