2016-07-31 114 views
1

我试图让我的阴谋只有在外部边缘上的标签,如:的R - 单标签多情节人物

enter image description here

,但我似乎无法弄清楚如何让它起作用。

我花了一些时间与this question,但我没有很好的理解如何平等,或总体来说,阴谋真的有效,所以它没有对我很好。

无论如何,我附加了我在这一点上的简化版本,我真的很感谢你的手。

library(popbio) 

mat <- matrix2(c(0,0,0,6.13,0.22,0.55,0.05,0,0,0.23,0.79,0.15,0,0,0.16,0.85)) 

ela <- elasticity(mat) 
sen <- sensitivity(mat) 

par(mfrow = c(1, 3), oma = c(0, 2, 2, 0), mar = c(0, 1, 1, 0), xpd = NA) 

image2(mat, mar = c(1,3.5,5,1), col = c("grey"), labels=c(0,0,0,0)) 
image2(ela, mar = c(1,3.5,5,1), labels=c(0,0,0,0)) 
image2(sen, mar = c(1,3.5,5,1), labels=c(0,0,0,0)) 

title(xlab=c("matrix","elasticity","sensitivity"), ylab=c("herb"), outer=TRUE, line=3) 

谢谢!

回答

0

这是多么复杂?如何:

par(mfrow = c(1, 3)) 

image2(mat, mar = c(1,3.5,5,1), col = c("grey"), labels=c(0,0,0,0)) 
mtext(text = "herb", side = 2, line = 1, las = 2, font = 2) 
mtext(text = "matrix", side = 3, line = 0, font = 2) 

image2(ela, mar = c(1,3.5,5,1), labels=c(0,0,0,0)) 
mtext(text = "elas", side = 3, line = 0, font = 2) 

image2(sen, mar = c(1,3.5,5,1), labels=c(0,0,0,0)) 
mtext(text = "sens", side = 3, line = 0, font = 2) 

enter image description here