由於 x = sex ,所以長條圖是以 sex 為主。 且因為 fill = race ,所以顏色是以種族為主。 接著請同學輸入: g + geom_bar(aes(x = sex, fill = race), position = "dodge") ...
確定! 回上一頁