【发布时间】:2019-08-17 13:27:42
【问题描述】:
我正在尝试使用来自sjPlot 的plot_model() 函数创建预测值图。我希望我的预测线具有不同的线型和不同的颜色。
该函数包含一个colors 参数,将colors 设置为bw 将更改linetype,但将colors 设置为灰度。这个问题类似,但没有得到有用的答案:Colored ribbons and different linetypes in sjPlot plot_model()
例子:
不同的linetypes,但不是colors
data(iris)
toy_model <- lm( Sepal.Length ~ Sepal.Width + Species, data=iris)
my_plot <- plot_model(toy_model, type=("pred"),
terms=c("Sepal.Width","Species"),
colors="bw")
不同的colors,但不是linetypes
data(iris)
toy_model <- lm( Sepal.Length ~ Sepal.Width + Species, data=iris)
my_plot <- plot_model(toy_model, type=("pred"),
terms=c("Sepal.Width","Species"))
我怎样才能同时获得不同的colors 和不同的linetypes?换句话说,我想要这样的东西
【问题讨论】: