如何在ggbarplot中使用color_palette和fill_palette?

我正在使用此代码ggbarplot(cell_tidy,"label","n",fill = "groups",color = "label",position = position_dodge(),add = "mean_se",palette = c("white","royalblue4"))+theme_classic2() 我得到了这个:enter image description here

我只想根据标签更改调色板,我尝试过color_palette,但收到此错误Error in !is.null(facet.by) | combine : operations are possible only for numeric,logical or complex types

提前感谢您的帮助!

emily198688 回答:如何在ggbarplot中使用color_palette和fill_palette?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2801338.html

大家都在问