StatsPlots.jl
StatsPlots.jl copied to clipboard
MethodError: no method matching zero(::Type{Vector{Float64}}) on corrplot
Using Pluto.jl, and trying to corrplot a two DataFrame columns.
pyplot()
@df filtered_df corrplot([:AGE, :SEX])
Both :AGE and :SEX columns are Float64, no missing values. Using latest stable release of StatsPlots.jl, Plots.jl and Julia.
I'm getting this too, did you manage to find a solution?
Also I've just tried the README's example in the REPL and it throws the same error with the iris dataset.
Hello Gregory. I have not.
The vector of variable names should not be comma-separated. Note the example in the corrplot docstring:
@df iris corrplot([:SepalLength :SepalWidth :PetalLength :PetalWidth])
Can you verify that @df filtered_df corrplot([:AGE :SEX]) works?
I've just tried and it works as you said @sethaxen. I missed the commas when re-writing the example.
Do you know if there is a reason why a Matrix{Symbol} is used as a parameter instead of a Vector{Symbol}?