How to switch to a map that is centered on the China instead of the default set in R ? -


i have been using r plot world map , want switch map centered on pacific ocean , splits atlantic make data plot easier.

but default set of r this:

 map("world")  

r default set

and want map this:

world map wanted

i have tried of r worldmap option "orientation" though says " orientation vector c(latitude, longitude, rotation) describing map should centered , clockwise rotation (in degrees) center. " still not use example following command produce this:

 map("world",orientation=c(35,104,0))    warning:  in map("world", orientation = c(35, 104, 0)) :  projection failed data 

the result this:

the r plotting odd map

the result strange. how can right picture 2 have shown? thank you.

your example picture seems centered around 0 lat, 150 lon. following seems generate example picture:

library(maps) map("world",orientation=c(90, 150,0), projection="mollweide", wrap=true)  

for reason appears need add 90 longitude.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -