How to use legend R with transparent background when using plot() function?
plot()
Usage: bg = "transparent" in
legend()
For example:
legend("right",bg="transparent",col=c(as.numeric(unique(df$group2))),cex=0.5)