Description Usage Arguments Value See Also Examples
This function takes in data on Swedish municipalities, and creates a plot of said data on an interactive map of Sweden.
1 |
dat |
Either a data frame of two columns, the first of which contains names of municipalities and the second the data, or a named list, where the names are names of municipalities. Allowed to be partial data, municipalities without data have their data automatically set to NA. |
tooltips |
A data frame with two columns, the first of which contains the name of a municipality and the second the tooltip that should be shown for that municipality. If omitted, tooltips are generated automatically from the data. |
mainTitle |
Main title of the plot, displayed at the top. If omitted, plot has no title. |
subTitle |
Subtitle of the plot, displayed right below the title. If omitted, plot has no subtitle. |
legendTitle |
Title of the legend of the plot. If omitted, legend has no title - so don't omit this. |
A ggplot object that can be turned into an interactive graphic with the girafe function, see the example.
exampleForestPlot
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.