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
對此有何看法?