我想獲得更多種類的線條顏色在這個散點圖/點:更改調色板
require(ggplot2)
dt.gg <- read.csv("http://goo.gl/5yjEZ")
dt.gg$X <- NULL
dt.gg$X.1 <- NULL
ggplot(dt.gg, aes(x=base, y=pred, color=hospital,group=hospital)) + geom_point(shape=1) +
geom_line()+ theme(legend.position="none") + scale_fill_brewer(palette=3)
scale_fill_brewer
似乎並沒有工作
嘗試:'scale_colour_gradientn(colors = rainbow(7))''。你有太多的團體。我想,'scale_colour_brewer()'不會工作。 – Arun
不錯。這很好。請把它作爲答案,我會接受它...... –