EVOLUTION-MANAGER
Edit File: hcmap.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Shortcut for create map from <URL:...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for hcmap {highcharter}"><tr><td>hcmap {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Shortcut for create map from <a href="https://code.highcharts.com/mapdata/">https://code.highcharts.com/mapdata/</a> collection.</h2> <h3>Description</h3> <p>Shortcut for create map from <a href="https://code.highcharts.com/mapdata/">https://code.highcharts.com/mapdata/</a> collection. </p> <h3>Usage</h3> <pre> hcmap( map = "custom/world", download_map_data = getOption("highcharter.download_map_data"), data = NULL, value = NULL, joinBy = NULL, ... ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>map</code></td> <td> <p>String indicating what map to chart, a list from <a href="https://code.highcharts.com/mapdata/">https://code.highcharts.com/mapdata/</a>. See examples.</p> </td></tr> <tr valign="top"><td><code>download_map_data</code></td> <td> <p>A logical value whether to download (add as a dependency) the map. Default <code>TRUE</code> via <code>getOption("highcharter.download_map_data")</code>.</p> </td></tr> <tr valign="top"><td><code>data</code></td> <td> <p>Optional data to make a choropleth, in case of use the joinBy and value are needed.</p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>A string value with the name of the variable to chart.</p> </td></tr> <tr valign="top"><td><code>joinBy</code></td> <td> <p>What property to join the <code>map</code> and <code>df</code>.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional shared arguments for the data series (<a href="https://api.highcharts.com/highcharts/series">https://api.highcharts.com/highcharts/series</a>).</p> </td></tr> </table> <h3>Examples</h3> <pre> options(highcharter.download_map_data = TRUE) # hcmap(nullColor = "#DADADA") # hcmap(nullColor = "#DADADA", download_map_data = FALSE) require(dplyr) data("USArrests", package = "datasets") USArrests <- mutate(USArrests, "woe-name" = rownames(USArrests)) # hcmap( # map = "countries/us/us-all", data = USArrests, # joinBy = "woe-name", value = "UrbanPop", name = "Urban Population" # ) # download_map_data = FALSE # hcmap( # map = "countries/us/us-all", data = USArrests, # joinBy = "woe-name", value = "UrbanPop", name = "Urban Population", # download_map_data = FALSE # ) </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>