Description Usage Arguments Value
This function is called from ‘ui.R’ (or from
renderUI()
); it creates a <svg>
that will contain
a cartogram map.
1 2 3 4 |
outputId |
the id of the <svg> element |
width,height |
The width and height of the map. They can either take a
CSS length (e.g. |
translateX,translateY |
The x and y offset of the map in pixels. |
scale |
The scale of the map which affects initial height and width of your map. |
topojson |
The URL for the topojson which encodes the map topology such as boundaries and names. (the us states are used by default). See https://github.com/mbostock/topojson/wiki for information about where to find other maps or creating your own map. |
colors |
The list of colors to use when filling map tiles.
See the package vignette |
An HTML tag list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.