p <- ggplot(mpg, aes(x = cty, y = hwy, colour = factor(year))) p ... 這裡我們指定了其散點的顏色,在 aes() 中使用了 colour = ,其後面的 year ...
確定! 回上一頁