-
Notifications
You must be signed in to change notification settings - Fork 5
corrplot doesn't support DataFrames #10
Comments
This should probably be a Plots issue... passing in a DataFrame to any plotting command, but without any column labels, should plot one series per column. |
I'm also facing same issue julia> using RDatasets
julia> using MLPlots
julia> iris=dataset("datasets", "iris")
julia> corrplot(iris)
ERROR: MethodError: `corrplot` has no method matching corrplot(::DataFrames.DataFrame) Maybe you should add Requires.jl https://github.com/MikeInnes/Requires.jl to help to fix that |
To be clear... this isn't a bug... it's a not-yet-implemented feature. I should note that I plan on rewriting corrplot as a "user recipe" and moving it to PlotRecipes.jl.
I'm not sure what you think that would accomplish... |
To my understanding if you add Requires.jl as requirement, you will be able to have code that can take DataFrame as input (even if DataFrames.jl is not installed). So it's a good way to have optional dependencies. |
Yeah I know about Requires (btw DataFrames is already an optional On Thursday, June 9, 2016, scls19fr notifications@github.com wrote:
|
To me Requires seems like an unclean solution nowadays |
a=Array(iris[[:SepalLength,:SepalWidth,:PetalLength,:PetalWidth]])
corrplot(a) Unfortunatelly I haven't found a way to define points color by Species. Setting axes name will also be a great feature to have. A similar issue can be found here |
See: JuliaPlots/GraphRecipes.jl#1 Any feature requests for the corrplot recipe should be made there. |
LoadError: MethodError:
corrplothas no method matching corrplot(::DataFrames.DataFrame)
The text was updated successfully, but these errors were encountered: