This function is a convenience wrapper around graphics::legend()
. It will show the AQI colors and
names by default if col
and legend
are not specified.
1 2 3 4 5 6 7 8 9 |
x |
x coordinate passed on to the |
y |
y coordinate passed on to the |
col |
the color for points/lines in the legend |
legend |
a character vector to be shown in the legend |
pch |
plotting symbols in the legend |
title |
title for the legend |
... |
additional arguments to be passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.