[R] low resolution word map

Thomas Steiner finbref.2006 at gmail.com
Wed Aug 1 22:06:59 CEST 2012


Hi Ray,

2012/7/31 Ray Brownrigg <Ray.Brownrigg at ecs.vuw.ac.nz>:
> On 07/28/12 23:46, Thomas Steiner wrote:
>> Hi,
>> I'd like to have a low resolution word map in R.
>> The "maps" package has this option, but if I use the argument, the map
>> looses sense: Russia and Australia get empty etc
>>
>> library("maps")
>> m=map(col="skyblue",fill=TRUE,plot=TRUE,resolution=10)
>> length(m$x)
>>
>> If I drop the "fill=TRUE", the effect of "resolutaion=10000" is lost,
>
> I don't know why this is so, I hadn't realised that effect of resolution
> with fill=TRUE.

I don't understand either, but I left this observation to the developpers ;-)

>
>> ie no change. Is there any other package or could I use the resolution
>> argument differently?
>
> Well, you could say:
> m=map(col=0,fill=TRUE, resolution=10)
>
> Is that what you want?

no, if you look at the output (ie the map) you know why: little
islands like hawaii do still exist, but brazil is a rectangle of say 8
points...

>
> Ray
>
>> Thanks,
>> Thomas
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list