Ok, this works for me:

using StatsBase, DataArrays, DataFrames, Distributions
using Gadfly
using RDatasets

iris = dataset("datasets", "iris")
p = plot(iris, x = :SepalLength, y = :SepalWidth, color = :Species, Geom.point)

Whatever’s going wrong is a little subtle, so I’ve posted the whole IJulia 
notebook here: 
https://github.com/johnmyleswhite/UCDavis.jl/blob/master/Julia.ipynb

I’ll try to do more debugging to localize the point at which things fail.

 — John

On Feb 26, 2014, at 9:45 AM, John Myles White <[email protected]> wrote:

> I suspect so, but I got a no methods error when I tried looking it up. Let me 
> try to make a condensed test case that loads all of the packages I’m using.
> 
>  — John
>  
> On Feb 26, 2014, at 9:35 AM, Daniel Jones <[email protected]> wrote:
> 
>> Could "Distinct" be defined somewhere interfering with the definition in 
>> Iterators?
>> 
>> On Wednesday, February 26, 2014 9:28:32 AM UTC-8, John Myles White wrote:
>> I have a long IJulia notebook that I’m going to use for a talk tomorrow at 
>> UC Davis. 
>> 
>> At the end, I try to use Gadfly. But I hit a bug that seems to be caused by 
>> the preceding code as it functions in isolation: 
>> 
>> Specifically, 
>> 
>> julia> plot(iris, x = :SepalLength, y = :SepalWidth, color = :Species, 
>> Geom.point) 
>> 
>> produces this error: 
>> 
>> no method 
>> Distinct{ValueIterator{Dict{Symbol,ScaleElement}}}(ValueIterator{Dict{Symbol,ScaleElement}})
>>  
>>  in render at /Users/johnmyleswhite/.julia/v0.3/Gadfly/src/Gadfly.jl:612 
>>  in writemime at /Users/johnmyleswhite/.julia/v0.3/Gadfly/src/Gadfly.jl:738 
>>  in sprint at io.jl:468 
>>  in display_dict at 
>> /Users/johnmyleswhite/.julia/v0.3/IJulia/src/execute_request.jl:35 
>> 
>> Any thoughts on what’s happening? 
>> 
>>  — John 
>> 
> 

Reply via email to