问题描述
我为我的 R 分析 运行了一套配色方案,并希望将其集成到我的多元非线性回归的可视化中。我正在使用 effect_plot()
包中的 jtools
,因为它是我发现的最方便的功能。
到目前为止,我尝试添加 geom_smooth(se = Light_Blue)
或 geom_ribbon(fill = Light_Blue)
,同时将 interval = FALSE
设置在effect_plot()
,不成功。
期待任何帮助!
### Visualization of regression
effect_plot(model2,pred = novelty,centered = FALSE,interval = FALSE,colors = Dark_Blue)+
ggtitle("Title") +
geom_line(size = 1) +
ylim(0,5)+
labs(x = "x.text",y= "y.text") +
theme_minimal() +
theme(text=element_text(family="Times",face="bold",size=14),plot.title = element_text(hjust = 0.5),axis.title.y = element_text(margin = margin(t = 0,r = 20,b = 0,l = 0)),axis.title.x = element_text(margin = margin(t = 20,r = 0,)
### Color Codes for Plots
Dark_Blue = "#150563"
Light_Blue = "#8ecff5"
Grey = "#c2cacf"
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)