| addLegend | R Documentation | 
Add a legend to an existing panel.
addLegend(
  legend.loc = "topright",
  legend.names = NULL,
  col = NULL,
  ncol = 1,
  on = 0,
  ...
)
| legend.loc | One of nine locations: bottomright, bottom, bottomleft, left, topleft, top, topright, right, or center. | 
| legend.names | Character vector of names for the legend. When  | 
| col | Fill colors for the legend. When  | 
| ncol | Number of columns for the legend. | 
| on | Panel number to draw on. A new panel will be drawn if  | 
| ... | Any other passthrough parameters to  | 
Ross Bennett
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.