r - 重新加载由 R 包生成的图
问题描述
请看下面的例子:基于forestplot
包帮助文档:
library(forestplot)
# DATA
row_names <- list(list("test = 1", expression(test >= 2)))
test_data <- data.frame(coef=c(1.59, 1.24),
low=c(1.4, 0.78),
high=c(1.8, 1.55))
# Graph
graph1 <- forestplot(row_names,
test_data$coef,
test_data$low,
test_data$high,
lineheight = "auto",
xlab = "Lab axis txt")
该图也保存为graph1
. 但是,当我重新加载graph1
dev.off()
graph1
我没有图表,但以下内容:
> graph1
GRID.VP.34::forestplot_margins
我想知道这是包的性质还是我在我的机器上安装的任何一个R
或Rstudio
其他包的问题。看来我对ggplot2
图表没有这样的问题。任何意见,将不胜感激。
解决方案
推荐阅读
- flutter - 在不同屏幕上的自定义导航栏中更改所选项目的颜色
- python - Tkinter Canvas.itemconfigure 没有正确使用?
- c - 为什么这个简单的 C 程序没有显示任何输出?
- spring - 当后端使用 webflux 或简单的 rest 控制器时,web 浏览器有什么不同吗?
- python - 在 Chatterbot 中使用 Ubuntu 数据集时出现 RuntimeError
- java - JasperReport 在 WildFly 中找不到符号 JREvaluator,无需服务器即可工作
- r - 如何避免for-loop *or*如何在迭代过程中动态更新purrr::map得到的结果?
- django - DetailView 中的多个独立表单
- javascript - Axios - 设置拦截器以在错误时重试原始请求
- php - WooCommerce 我的帐户仪表板:编辑帐单地址的直接链接