This may be something which you are already aware of, but thought I'd document it in case it causes issues for anyone else.
As documented elsewhere, when creating a datamaps object using a custom topojson file, you have to define a new setProjection() function. In R, you do this using a string surrounded by javascript literals (#!):
This may be something which you are already aware of, but thought I'd document it in case it causes issues for anyone else.
As documented elsewhere, when creating a datamaps object using a custom topojson file, you have to define a new setProjection() function. In R, you do this using a string surrounded by javascript literals (#!):
When you save to html using rMaps, the javascript literals are treated properly, and the output html includes the following:
However, in rCharts, the js literals are ignored and the setProjection option shows up as a string rather than a function in the output html file: