We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672a46b commit c88f8c4Copy full SHA for c88f8c4
src/plotter.R
@@ -873,16 +873,18 @@ plotstd3 <- function(mainTitle,
873
legendColors <- par("fg")
874
legendBackground <- "white"
875
}
876
- legend(lx, ly,
877
- xjust = lxjust,
878
- yjust = lyjust,
879
- parse(text=legendTexts),
880
- bg=legendBackground,
881
- col=legendColors,
882
- lty=legendStyles,
883
- pch=legendDots,
884
- text.col=legendColors,
885
- lwd=1, cex=par("cex")*legendSize)
+ if(length(legendTexts) > 1) {
+ legend(lx, ly,
+ xjust = lxjust,
+ yjust = lyjust,
+ parse(text=legendTexts),
+ bg=legendBackground,
+ col=legendColors,
+ lty=legendStyles,
+ pch=legendDots,
+ text.col=legendColors,
886
+ lwd=1, cex=par("cex")*legendSize)
887
+ }
888
889
890
par(opar)
0 commit comments