library(ggplot2) ggplot( mtcars, aes(x = wt, y = mpg, color = factor(cyl)) ) + geom_point() + scale_color_manual(values = c("black", "red", "blue")).
確定! 回上一頁