2
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)

产生以下情节:

一个

(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"))

一个

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

此致,

塞巴斯蒂安

4

0 回答 0