Mattriks
Mattriks
What version of Gadfly do you have? ```]st Gadfly``` Your example works for me on Gadfly 1.3.1
Yep general support for missing got added to Gadfly in #1459 (by updating Compose to v0.9). #1459 was merged between Gadfly v1.3 and v1.3.1. So you need to upgrade.
Try ```julia using Compose # for cx, cy units df = DataFrame(c=[true, true, false], x=[1, 2, 1]) plot(df, x=:x, color=:c, Geom.histogram, Scale.x_discrete, Theme(bar_spacing=0.5cx)) ``` `bar_spacing` can be in relative (e.g....
e.g. `Scale.x_discrete(levels=[1,3,4,5])` See the [Scales section](http://gadflyjl.org/stable/tutorial/#Continuous-Scales-1) in the Tutorial. If your scale is really continuous, you can set e.g. `Geom.histogram(limits=(min=0, max=5), bincount=5)`, see [histogram examples](http://gadflyjl.org/stable/gallery/geometries/#[Geom.histogram](@ref)-1) in the plot gallery.
What's in your original post isn't a bug, Gadfly is simply choosing automatic bins (which you can manually set as shown above - I'd suggest using `bincount`, rather than `minbincount`...
Limits issue noted on discourse: https://discourse.julialang.org/t/unexpected-behaviour-for-custom-histogram-limits-in-gadfly/
See #1459 , #1463 and #1465. This has been fixed on Gadfly master (`]add Gadfly#master`). More improvements like this are coming soon! Note with your above example (and in Jupyter)...
Also please look at #1430, and add any changes there about color syntax that you would like to see!
Missing values have had a troubled history in Julia itself. There was `NA` in [DataArrays](https://github.com/JuliaStats/DataArrays.jl) and `Nullable` in [Julia 0.4](https://github.com/JuliaLang/julia/blob/v0.4.0/NEWS.md). The new `missing` (Julia 0.7/1.0) is the first stable implementation...
With Gadfly#master (Gadfly 1.3+), `Geom.point` and `Geom.line` will work with missing values. Other geometries may or may not work, will fix on a geom-by-geom basis!