We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hist
hist fails on categorical inputs, either Strings or values wrapped in Categorical.
Categorical
grain = rand(["clay", "silt", "sand"], 36) hist(grain) hist(Categorical(grain))
Ideally, what I posted above would "just work". The input to hist is arguably all along the x axis, so maybe expanding dimensions could fix it?
It currently fails at:
[8] pick_hist_edges(vals::CategoricalVector{String, UInt32, String, CategoricalValue{String, UInt32}, Union{}}, bins::Int64) @ Makie ~/.julia/dev/Makie/src/stats/hist.jl:151
The current workaround for this is
using StatsBase pcm = collect(pairs(StatsBase.countmap(grain))) barplot(Categorical(first.(pcm)), last.(pcm))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature description
hist
fails on categorical inputs, either Strings or values wrapped inCategorical
.Ideally, what I posted above would "just work". The input to hist is arguably all along the x axis, so maybe expanding dimensions could fix it?
It currently fails at:
The current workaround for this is
The text was updated successfully, but these errors were encountered: