The length of `x`

determines how it will be treated.
If `x`

has length 1, it is returned as a single
color. If the length of `x`

is the number of nodes
in the grid, its value for each element is calculated as
the average of the value at the adjoining nodes. If the
length of `x`

is the number of elements in the grid,
it is returned as is. Any other values throw an error.

`grid` |
An fvcom.grid instance. |

`x` |
A vector of length 1 or |

A vector of length `get.nelems(grid)`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.