Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 R 包 visreg 来可视化模型的结果。我想将回归线的颜色从默认的蓝色更改为黑色。添加col = "black"没有帮助。如何进行此更改?
col = "black"
谢谢!
您需要传入参数col = black:line.par
col = black
line.par
fit <- lm(Ozone ~ Solar.R + Wind + Temp,data=airquality) visreg(fit, line.par = list(col = 'black'))