为图例添加颜色会导致条形图全部为正

时间:2016-11-07 16:03:33

标签: julia gadfly

using Gadfly, DataFrames

v = DataFrame(x = [1,2,3], y = [0.5,-0.7,1.2], label = ["a","b","c"])

plot(v , x=:x, y=:y, Geom.bar, Theme(bar_spacing = 2mm), 
Guide.title("geneX"), Guide.ylabel("fold change"),
Guide.xlabel("technique"), color = :label)

产生以下图:

a

(snd bar应该是否定的)

#  without 'color = :label'
plot(v , x=:x, y=:y, Geom.bar, Theme(bar_spacing = 2mm),
Guide.title("geneX"), Guide.ylabel("fold change"), Guide.xlabel("technique"))

a

是否有针对此问题的解决方法?

致以最诚挚的问候,

塞巴斯蒂安

0 个答案:

没有答案