Reputation: 303
Here is the code:
df$ProsperRating..Alpha.<-ordered(df$ProsperRating..Alpha.,
levels = c("AA","A","B","C","D","E","HR"))
ggplot(aes(x=BorrowerAPR,y=LP_InterestandFees),
data=subset(df,!is.na(ProsperRating..Alpha.)))+
geom_point(alpha=0.2,aes(color=ProsperRating..Alpha.),position = "jitter")
But i need to change the color of the points into blues, like this:
How can i achieve that ?
Upvotes: 1
Views: 375
Reputation: 77096
library(ggplot2)
qplot(x, price, data = diamonds, colour = clarity) +
scale_colour_brewer(palette="Blues", direction = -1)
produces this
Upvotes: 3