Plot maps for nCoV in China
plot_map( x, key = c("confirmedCount", "suspectedCount", "curedCount", "deadCount"), filter = "unkown", legend_title = "Confirmed", color = "Reds", scale = c("cat", "log"), method = c("province", "city", "country") )
key | the column name |
---|---|
filter | the rows to remove. |
legend_title | legend title |
color | The colors or color function that values will be mapped to, see RColorBrewer::display.brewer.all() |
scale | "cat" for category, 'log' for numeric |
method | 'province' or 'city'. |
ncov | the dataset obtained by get_ncov() |
#> Warning: InternetOpenUrl failed: 'The server name or address could not be resolved'#> Error in readRDS(gzcon(url("https://github.com/pzhaonet/ncov/raw/master/static/data-download/ncov.RDS"))) : #> cannot open the connection#>#>#> #>#>#> Error: lexical error: invalid char in json text. #> <html> <head><title>503 Servic #> (right here) ------^plot_map(ncov)#> Error: 'leafletcn.map.names' is not an exported object from 'namespace:leafletCN'