R复制到inkscape 0.92
我刚开始使用R。我的朋友通常使用inkscape来完成他们的R图。在RStudio中绘制绘图后,他们使用RStudio和Inkscape v0.92R复制到inkscape 0.92,r,plot,copy-paste,inkscape,metafile,R,Plot,Copy Paste,Inkscape,Metafile,我刚开始使用R。我的朋友通常使用inkscape来完成他们的R图。在RStudio中绘制绘图后,他们使用RStudio和Inkscape v0.92 Export > Copy to Clipboard > Copy as Metafile > Copy Plot 然后在inkscape中简单地Ctrl+V。但当我这样做时,inkscape中粘贴的情节就完全被破坏了 我的例子是: 在RStudio data=c(1,2,3,4,5,6,7,8,9,10,11,12,13,14
Export > Copy to Clipboard > Copy as Metafile > Copy Plot
然后在inkscape中简单地Ctrl+V
。但当我这样做时,inkscape中粘贴的情节就完全被破坏了
我的例子是:
在RStudio
data=c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)
par(pty="s")
qqnorm(data, pch=19, cex = 0.8, xlab = "Quantis Teóricos", ylab= "Amostra", las=1,
main="Gráfico QQ", lwd = 0.25, cex.main=1.0, cex.lab=0.75, cex.axis=0.75,
font.lab=2, xlim=c(-5,5), xaxs="r", yaxs="r")
qqline(data, lwd = 0.25)
grid(4, 5, lwd = 0.25)
box(lwd = 0.25)
然后,当我在inkscape中Ctrl+V
时
任何人都知道如何修复它???关于这一点
您不应该复制/粘贴到inkspace,而应该输出*.svg
,以便以后在该环境中对其进行编辑
mypath <- "Path/to/the/desired/folder/myplot.svg" #Edit the path as you wish
svg(mypath, width = 8, height = 10)
data=c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)
par(pty="s")
qqnorm(data, pch=19, cex = 0.8, xlab = "Quantis Teóricos", ylab= "Amostra", las=1,
main="Gráfico QQ", lwd = 0.25, cex.main=1.0, cex.lab=0.75, cex.axis=0.75,
font.lab=2, xlim=c(-5,5), xaxs="r", yaxs="r")
qqline(data, lwd = 0.25)
grid(4, 5, lwd = 0.25)
box(lwd = 0.25)
dev.off()
mypath我非常感谢Inkscape-很棒的工具但是与旧的0.48相比,新版本对我来说都是一个不好的改进。粘贴在0.48中效果很好,所以如果可以的话,您可能想要抓住它。。。