r - 在 R 中绘制 pSeries 对象
问题描述
我目前正在尝试使用以下代码在 R 中绘制池化 ols 回归的残差:
plot(
SS_LinReg_LATAM_Original$residuals,
plot = c("lattice", "superposed"),
scale = TRUE,
transparency = TRUE,
col = "black",
xlab = "Date",
xaxt = "n",
ylab = "Residual in Percentage Points",
ylim = c(-7,7)
)
其中 SS_LinReg_LATAM_Original 是使用 plm() 和相应 pdata.frame 的合并 OLS 回归,索引 = c("Country", "Month")
这给了我下图:
我现在有三个问题,到目前为止我无法在网上找到答案:
- 如何在国家名称后面获得白色背景?
- 如何摆脱图表中的黑条?
- 如何以 5 年的间隔为每个面板设置 x 轴?
非常感谢您的帮助!
解决方案
推荐阅读
- ios - print() 语句未在 Android Studio 中的颤动 iOS 应用程序中打印到控制台
- postgresql - 查找重复项可以,但为什么删除不起作用?
- javascript - 如何使用 Turn.js 将 filp 效果添加到 epub 页面?
- solr - 使用 gremlin cli 连接到 apache atlas + hbase + solr setup
- mysql - 通过使用 django ORM 查询获取模型对象的所有相关细节?
- php - 非常高级的mysql搜索
- c# - Moq 插入/更新新对象初始化
- html - 无法在固定位置 div 下方使用滚动条
- php - Magento 2.3.2 - 单击使用贝宝快速结帐付款时删除自定义属性地址
- linux - 如何通过 RDP 访问 Azure Linux 虚拟机