【发布时间】:2018-08-18 15:43:14
【问题描述】:
我可以使用以下方法将 jpeg 添加到基本图形图上: 参考:Adding a picture to plot in R
require(jpeg)
img <- readJPEG("myfile.jpeg")
#now open a plot window with coordinates
par(oma=c(2, 0, 3, 0))
plot(1:10, ty="n")
mtext("I would like to put logo here", adj=0, cex=1.5, line=1, side=3, outer=TRUE)
#specify the position of the image through bottom-left and top-right coords
rasterImage(img, 2, 2, 4, 4)
但是如何将 jpeg 添加到顶部 lhs 外边距?我有一个标志,我想把它放在那里。
【问题讨论】: