'Add borderColor for map Highcharter R


How to add a border for map plot in Highcharter in R?
In https://jkunst.com/highcharter/articles/highcharts-api.html showed `borderColor = '#EBBA95'`, but it change border inside map

What I need: enter image description here

What I have with this function:

library(highcharter)
hcmap("countries/nz/nz-all", 
      borderColor = "darkred")

enter image description here



Solution 1:[1]

You could set the borderColor of the chart via hc_chart():

library(highcharter)
hcmap("countries/nz/nz-all") %>% 
  hc_chart(borderColor = "darkred", borderWidth = 10)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 stefan