You can manually create a colorkey, using Geom.manual_color_key, it works 
like

Geom.manual_color_key("Key Title", ["Thing One", "Thing Two"], 
[color("red"), color("green")])

On Friday, February 27, 2015 at 5:53:29 AM UTC-8, Andrei Berceanu wrote:
>
> I have a 2D plot of 2 layers with different colors:
>
>
>
>
>
> *using Gadflyplot(layer(x=1:10, y=rand(10), Geom.line, Geom.point, 
> Theme(default_color=color("red"))),       layer(x=1:10, y=rand(10), 
> Geom.line, Geom.point, Theme(default_color=color("green"))))*How can I 
> generate a legend which specifies what each line color represents? I tried 
> using 
>
> Guide.colorkey but that doesn't seem to work for layers.
>
> //A
>
>

Reply via email to