Error in plot.new(): figure margins too large
目录
Error in plot.new(): figure margins too large
问题:
mar=c(0,0,0,0) removes the margins
# par(mar = c(1, 1, 1, 1))
textplot(temptext1, valign="center", cex=0.8, halign= "left",mar=c(1,1,1,1), col=2)
# mar=c(0,0,0,0) removes the margins
temp <- locator(1)
text(temp, temptext2,col=4)
解决:
par(mar = c(1, 1, 1, 1))
temptext2 <- "You can also add more text in the usual way by using again the locator(1)+text() functions"
par(mar = c(1, 1, 1, 1))
textplot(temptext1, valign="center", cex=0.8, halign= "left",mar=c(1,1,1,1), col=2)
# mar=c(0,0,0,0) removes the margins
temp <- locator(1)
text(temp, temptext2,col=4)
完整错误:
Error in plot.new(): figure margins too large
Traceback:
1. textplot(temptext1, valign = "center", cex = 0.8, halign = "left",
. mar = c(1, 1, 1, 1), col = 2)
2. textplot.character(temptext1, valign = "center", cex = 0.8, halign = "left",
. mar = c(1, 1, 1, 1), col = 2)
3. plot.new()
参考:R How to Fix: Error in plot.new() : figure margins too large (3 Examples)
参考:R