1

I would like to obtain a greater variety of colours in the lines/points on this scatterplot:

enter image description here

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 doesn't seem to work

4

1 回答 1

3

试试:scale_colour_gradientn(colours = rainbow(7))

于 2013-02-04T22:30:46.117 回答