Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 R 包rgl来创建交互式绘图,然后使用它的功能rgl.snapshot来从中导出图像。但是,我想知道是否有办法将交互式rgl绘图中的快照直接插入普通 R 绘图的插图中。有没有人有这样的任务经验?
rgl
rgl.snapshot
library(png) library(rgl) example(surface3d) rgl.snapshot("plot.png") plot(0:10, 10:0) img <- readPNG("plot.png") rasterImage(as.raster(img), 4, 2, 8, 6)