jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
717 stars 147 forks source link

rotation in hc_mapView() not working as expected #793

Open zhangw2 opened 1 year ago

zhangw2 commented 1 year ago

I tried to use hc_mapView() function to make a world map pacific centric. The example of using Highcharts can be found here (https://jsfiddle.net/BlackLabel/p5or2gfe/). I then tried to replicate it in R but cannot get it working.

I used highcharter 0.9.4.9 installed from Github (the Dev version).

library(highcharter)

hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = 210 ) )

## use different format for rotation
hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = '[210]' ) )

## use different format for rotation
hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = list('[210]') ) )