0
我在coefplot
包中使用multiplot
函数,该函数使用ggplot2
作为基准。我正在绘制多个模型,但无法弄清楚如何更改每个模型的颜色。例如:更改多色模型中的模型颜色(ggplot2)
require(coefplot)
data(diamonds)
model1 <- lm(price ~ carat + cut, data=diamonds)
model2 <- lm(price ~ carat + cut + color, data=diamonds)
multiplot(model1, model2)
# multiplot(model1, model2, colors = c("blue", "red")) # Doesn't Work
对此有何看法?