R情节传奇与透明背景

时间:2016-04-29 13:20:45

标签: r plot legend alpha-transparency

如何在使用.whatWeDo { background-image: url("/images/intManagement/homePage/whatwedo.jpg"); background-repeat: no-repeat; background-size: 100% 100%; float: left; height: 100%; padding-top: 100px; position: relative; top: 80px; width: 100%; } 功能时使用透明背景绘制图例?

1 个答案:

答案 0 :(得分:19)

使用: bg =“透明”

legend()

如:

legend("right",bg="transparent",col=c(as.numeric(unique(df$group2))),cex=0.5)