Maybe there is a more compact way, but Theme(default_color=color(<color>)) 
in layer and Guide.manual_color_key in plot should work, for example:

x0= [1:10]
y1 = rand(10)
y2=rand(10)

l1 = layer(x= x0, y = y1, Geom.line, Theme(default_color=color("red")))
l2 = layer(x= x0, y = y2, Geom.line, Theme(default_color=color("green")))
plot(l1, l2, Guide.manual_color_key("hello",["line1","line2"], ["red", 
"green"]))


sebastian

On Monday, July 6, 2015 at 7:33:35 AM UTC-5, m wrote:
>
> Hello,
>
> I am using Gadfly packages to perform graphs as:
>
> plot(layer(x=A,y=sum(PWN_vec,1),Geom.line, 
> Theme(default_color=color("orange"))),
>     
>  
> layer(x=A,y=sum(PCN_vec,1),Geom.line,Theme(default_color=color("purple"))),Guide.xlabel("Wind
>  
> uncertainty"), Guide.ylabel("Total capacity to be installed"))
>
>
> But I cannot include a legend indicating one color for each layer, someone 
> could help me? 
>
> thank you in advance
>
> kind regards
>

Reply via email to