Changing the xlim of numeric value causing error ggplot R

后端 未结 2 1685
粉色の甜心
粉色の甜心 2021-01-28 06:02

I have a grouped barplot produced using ggplot in R with the following code

ggplot(mTogether, aes(x = USuniquNegR, y = value, fill = variable)) +
geom_bar(stat =         


        
2条回答
  •  一向
    一向 (楼主)
    2021-01-28 06:52

    The problem is that you are cbind()ing your column vectors together, which converts the numbers to characters. Fix that and the rest should fix itself.

    together<-data.frame(USperReasons,USperReasonsNY,USuniquNegR)
    

提交回复
热议问题