【发布时间】:2019-06-02 14:20:56
【问题描述】:
我有一些图像,我想通过定义坐标将这些图像添加到绘图中。
要在绘图上添加单个图像,我有此代码。
require(jpeg)
img<-readJPEG("C:/Users/dell/Desktop/0.jpg")
#now open a plot window with coordinates
plot(1:10,ty="n")
#specify the position of the image through bottom-left and top-right coords
rasterImage(img,2,2,4,4)
但我想在 R 图中显示多个图像
喜欢这个
提前致谢
【问题讨论】:
标签: r ggplot2 plot data-science