Reputation: 6147
How to R plot legend with transparent background when using plot()
function ?
Upvotes: 16
Views: 26622
Reputation: 1293
Use: bg="transparent" in
legend()
Such as:
legend("right",bg="transparent",col=c(as.numeric(unique(df$group2))),cex=0.5)
Upvotes: 31