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

Be able to take categorical input #28

Open
wardjm opened this issue Oct 16, 2024 · 2 comments
Open

Be able to take categorical input #28

wardjm opened this issue Oct 16, 2024 · 2 comments

Comments

@wardjm
Copy link

wardjm commented Oct 16, 2024

I know I can convert string categories to 0,1,2,... and then pass to beeswarm, but it would be convenient to be able to pass the categories directly in.

xs::Vector{String} = ["a", "b"]
ys::Vector{Float64} = [1.0, 2.0]

beeswarm(xs, ys)
@asinghvi17
Copy link
Member

That should work already if you wrap in Makie.Categorical, but we probably need some dimension expansion defs here.

@wardjm
Copy link
Author

wardjm commented Oct 16, 2024

Thanks! Works perfectly. I hadn't seen that before.

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

2 participants