Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing values #1267

Open
xiaodaigh opened this issue Mar 27, 2019 · 3 comments
Open

missing values #1267

xiaodaigh opened this issue Mar 27, 2019 · 3 comments

Comments

@xiaodaigh
Copy link

Gadfly.plot(x = [missing, 1, 2], y = [missing, 3, 4], Geom.point)

doesn't seem to plot. I think it would be a good idea to introduce a new way to deal with missings, e.g. not plot them and give a warning.

@Mattriks
Copy link
Member

Mattriks commented Mar 27, 2019

Missing values have had a troubled history in Julia itself. There was NA in DataArrays and Nullable in Julia 0.4. The new missing (Julia 0.7/1.0) is the first stable implementation of missing values in Julia. See my #1083 (comment) and the previous posts for more history! And this Julia blog post.

@bjarthur
Copy link
Member

replacing missing with NaN in your example is the workaround. might be easy to fix the code if one follows the treatment of NaNs and then adds logic for missing accordingly.

@Mattriks
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants