| addLegend | R Documentation | 
addLegend no return values.
addLegend( colSc = "normal", levels = 1:10, txt = NULL, pos = c(-1.3, 0, -0.8, 1), add = FALSE, topcolclass = FALSE, showlevels = NULL, cex = 0.8, title.cex = 1.4 )
| colSc | string defining the colour scheme | 
| txt | text to print on top of the legend, e.g. the unit | 
| pos | position of the legend given as a vector c(xl,yb,xr,yt) that define the lower left and upper right coordinates of the rectange of colors in user coordinates | 
| add | boolean variable, TRUE to add to current plot, FALSE to start a new plot | 
| topcolclass | boolean; the top colour class isn't properly plotted in the IRS and left out by default (FALSE) in the legend as well | 
| showlevels | if not null, a vector of two integer defining from which to which class to plot the legend, e.g. c(5,14) will not plot the first 4 levels and levels beyond the 14th | 
| cex | scaling factor for plotting text and symbols | 
| title.cex | scaling factor for title font size | 
No return value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.