根据 r 中 googlevis 中的条件放置不同的颜色

问题描述

这是我的数据框:

enter image description here

我使用以下代码在 googlevis 中制作了一个柱状图:

chart = gvisColumnChart(
  merged,xvar="Month",yvar = c("Joining","Departing"),options = list(
    legend="top",height=500,width=850,gvis.editor ="Edit me!"
  )
)
plot(chart)

我需要在带有最小“离开”的条形上使用不同的颜色。 我怎样才能做到这一点?提前致谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)