mdaplotg.showLegend | R Documentation |
Shows a legend for plot elements or their groups.
mdaplotg.showLegend(
legend,
col,
pt.bg = NA,
pch = NULL,
lty = NULL,
lwd = NULL,
cex = 1,
bty = "o",
position = "topright",
plot = TRUE,
...
)
legend |
vector with text elements for the legend items |
col |
vector with color values for the legend items |
pt.bg |
vector with background colors for the legend items (e.g. for pch = 21:25) |
pch |
vector with marker symbols for the legend items |
lty |
vector with line types for the legend items |
lwd |
vector with line width values for the legend items |
cex |
vector with cex factor for the points |
bty |
border type for the legend |
position |
legend position ("topright", "topleft', "bottomright", "bottomleft", "top", "bottom") |
plot |
logical, show legend or just calculate and return its size |
... |
other parameters |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.