【发布时间】:2013-07-13 14:16:06
【问题描述】:
我尝试从效果包中自定义多线图。
是否可以将下例中的图例放置在绘图区域内而不是图形上方?
或者:有谁知道如何绘制效果包使用 ggplot2 计算的多线回归结果?
感谢您的帮助。
安迪
示例:
library(effects)
data(Prestige)
mod5 <- lm(prestige ~ income*type + education, data=Prestige)
eff_cf <- effect("income*type", mod5)
print(plot(eff_cf, multiline=TRUE))
【问题讨论】:
-
你能像在效果包中那样显示示例数据吗?
-
感谢您的回复,我用一个例子更新了我的问题
标签: r ggplot2 regression