[R-sig-Geo] Million and billion in suffix of map legend

Raman Mishra r@m@n@m|@hr@10 @end|ng |rom gm@||@com
Wed Apr 22 20:21:53 CEST 2020


Dear Members,
I am plotting the population using style= "fixed" with breaks, I want my
legend to show "mn"  and "bn"  as a suffix.
 tm_fill(legend.format=list(fun=function(x) paste0(formatC(x,
digits=000000, format="big.num.abbr"), "mn")))
I tried with the above codes with tmap but could not succeed.
Please help.
Thanking you in advance.

Raman Mishra
Senior Research Scholar
International Institute for Population Sciences, Mumbai
Mobile: +91-8879317106

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list