我正在尝试使用plot_model()from 函数创建预测值图sjPlot。我希望我的预测线具有不同的线型和不同的颜色。
该函数包含一个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?换句话说,我想要这样的东西

