图网中交互线的颜色

时间:2019-05-28 19:28:23

标签: r networking plot colors bipartite

我想详细说明一个绘图网,其中互动线(col.interaction)的颜色与高处房屋类型的框的颜色相同列(高列)。 我正在显示一张看起来像我想要的照片。 有人可以告诉我要使用这种颜色组合,我需要在“ col.interaction”命令中写什么吗?

enter image description here

library("bipartite")
library("iNEXT")
library("vegan")
library("ggplot2")
dados<-t(dados)
plotweb(dados, arrow="down.center", method="normal", 
        text.rot=90, high.lablength=50, low.lablength=70,
        col.high = c("#66CC00", "#80FF00", "#80FF00", "#FF8000", "#66CC00","#FFFF00", "#66CC00", "#66CC00","#FFB266", "#FF0000"),
        col.low = "#994C00", bor.col.low= "#404040", bor.col.high= c("#66CC00", "#80FF00","#80FF00", "#FF8000", "#66CC00","#FFFF00", "#66CC00", "#66CC00", "#FFB266", "#FF0000"), 
        col.interaction = col.high, bor.col.interaction = col.high, y.lim = c(-0.26,6), low.y=0.69, high.y=3.7)

house   A   B   C   D
Aa  0   2   3   0
Bb  0   2   3   0
Cc  0   4   0   0
Dd  0   8   0   0
Ee  16  2   0   4
Ff  16  0   0   3
Gg  16  1   0   29
Hh  16  30  10  45
Jj  16  3   0   1
Ll  0   20  0   10

0 个答案:

没有答案