I’m sure I’m making a relatively elementary error, but when I attempt to work through the Gadfly tutorial, I keep getting errors when I run their code. For instance, when I run:
using RDatasets
using Gadfly
iris = dataset("datasets", "iris")
p = plot(iris, x=:SepalLength, y=:SepalWidth, Geom.point);
I get the error:
ERROR: Cannot convert DataFrame to series data for plotting
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] _prepare_series_data(::DataFrame) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesPipeline\dZsrD\src\series.jl:8
[3] _series_data_vector(::DataFrame, ::Dict{Symbol,Any}) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesPipeline\dZsrD\src\series.jl:27
[4] macro expansion at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesPipeline\dZsrD\src\series.jl:138 [inlined]
[5] apply_recipe(::Dict{Symbol,Any}, ::Type{RecipesPipeline.SliceIt}, ::DataFrame, ::Type{T} where T, ::Nothing) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesBase\jcXIg\src\RecipesBase.jl:281
[6] _process_userrecipes!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{DataFrame,DataType}) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesPipeline\dZsrD\src\user_recipe.jl:35
[7] recipe_pipeline!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{DataFrame,DataType}) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\RecipesPipeline\dZsrD\src\RecipesPipeline.jl:67
[8] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{DataFrame,DataType}) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\Plots\V8QVi\src\plot.jl:167
[9] plot(::DataFrame, ::Vararg{Any,N} where N; kw::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol,Symbol},NamedTuple{(:x, :y),Tuple{Symbol,Symbol}}}) at C:\Users\...\.juliapro\JuliaPro_v1.4.2-1\packages\Plots\V8QVi\src\plot.jl:57
[10] top-level scope at none:0
(Where … fills in for my user name—I’m not sure what the convention is for writing the username here. If it’s relevant: I set the username up several years ago, and it has spaces in it, so the file path does too.)
I’m sure I’m missing something elementary, but googling isn’t turning anything up.
Thank you!