Changing color of density plots in ggplot2

前端 未结 1 1415
南笙
南笙 2021-02-01 04:53

I\'ve got a nifty pair of probability density functions I created with ggplot2 as follows:

require(ggplot2)
set.seed(2)
data <- rbind( data.frame(type=\"a\",          


        
相关标签:
1条回答
  • 2021-02-01 05:43

    Start kicking yourself:

    m + scale_fill_manual( values = c("red","blue"))
    

    enter image description here

    0 讨论(0)
提交回复
热议问题