Re: [R] USA map
k == kjetil [EMAIL PROTECTED] disait: snip k I also tried k map(worldHires,sweden) k map(worldHires,denmark) # which comes out very small since it k # includes the Faroe k # islands properly faraway and, just to know, how would you do to plot *only* continental denmark? The same applies for france, UK, ... -- Mathieu Ros Ph. D. student - Canalizing selection using Bayesian models INRA - Fish Genetics Unit (Paris)/Cell Genetics Unit (Toulouse) tel : (+0033)1 3465 3414 (FGU) / (+0033)5 6128 5305 (CGU) mail : [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On Wed, 5 Nov 2003 11:28:42 +0100 (MET), Mathieu Ros [EMAIL PROTECTED] wrote: k == kjetil [EMAIL PROTECTED] disait: snip k I also tried k map(worldHires,sweden) k map(worldHires,denmark) # which comes out very small since it k # includes the Faroe k # islands properly faraway and, just to know, how would you do to plot *only* continental denmark? The same applies for france, UK, ... Hello One simple way of doing it is to specify the xlim and ylim of your map, e.g. library(maps) map('world', 'Norway', xlim=c(5, 33), ylim=c(55, 75)) btw. the reason why Norway comes out so small when writing only map('world', 'Norway') is due to the Bouvet Island, located south (54 degrees south) in the Atlantic Ocean. Ivar Herfindal __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
Ivar Herfindal [EMAIL PROTECTED] wrote: On Wed, 5 Nov 2003 11:28:42 +0100 (MET), Mathieu Ros [EMAIL PROTECTED] wrote: k == kjetil [EMAIL PROTECTED] disait: snip k I also tried k map(worldHires,sweden) k map(worldHires,denmark) # which comes out very small since it k # includes the Faroe k # islands properly faraway and, just to know, how would you do to plot *only* continental denmark? The same applies for france, UK, ... Hello One simple way of doing it is to specify the xlim and ylim of your map, e.g. library(maps) map('world', 'Norway', xlim=c(5, 33), ylim=c(55, 75)) But the 'best' way is RTFM! map(world, Norway, exact=T) Ray Brownrigg __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On Wed, 2003-11-05 at 21:17, Ray Brownrigg wrote: Ivar Herfindal [EMAIL PROTECTED] wrote: On Wed, 5 Nov 2003 11:28:42 +0100 (MET), Mathieu Ros [EMAIL PROTECTED] wrote: k == kjetil [EMAIL PROTECTED] disait: snip k I also tried k map(worldHires,sweden) k map(worldHires,denmark) # which comes out very small since it k # includes the Faroe k # islands properly faraway and, just to know, how would you do to plot *only* continental denmark? The same applies for france, UK, ... Hello One simple way of doing it is to specify the xlim and ylim of your map, e.g. library(maps) map('world', 'Norway', xlim=c(5, 33), ylim=c(55, 75)) But the 'best' way is RTFM! map(world, Norway, exact=T) Actually this not a good way, since then you have to trust CIA and its naming conventions. All large coastal islands are left out (Lofoten etc), although for some peculiar reason, Tromsø seems to be there. However, even continental parts of eastern Finmark are excluded (I hope this does not have political implications). Just compare the following maps: map(worldHires,Norway, exact=TRUE, type=n) map(worldHires,Norway, add=TRUE) map(worldHires,Norway, add=TRUE, exact=TRUE, col=red) By the way, where is Estonia? Couln't find it with any strings I could imagine. Some R core developers have frequented Estonia, so it would be nice to have that in the map. cheers, jari oksanen -- Jari Oksanen -- Biologian laitos, Oulun yliopisto, 90014 Oulu Puh. (08) 553 1526, käsi 040 5136529, fax (08) 553 1061 sposti [EMAIL PROTECTED], kotisivu http://cc.oulu.fi/~jarioksa/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On 3 Nov 2003 at 15:04, [EMAIL PROTECTED] wrote: I believe in R you need library(maps) before using usa(). Of course, the library has to be installed first. Yes, I new that. When I did help.search(usa) I HAD maps attached. It dosen't have any function usa(). R is more international minded: library(maps) usa() Error: couldn't find function usa map('usa') map('china') map('bolivia') and so on also works! Kjetil Halvorsen Cheers, Andy __ Andy Jaworski Engineering Systems Technology Center 3M Center, 518-1-01 St. Paul, MN 55144-1000 - E-mail: [EMAIL PROTECTED] Tel: (651) 733-6092 Fax: (651) 736-3122 |-+ | | [EMAIL PROTECTED] | | | Sent by: | | | [EMAIL PROTECTED]| | | ath.ethz.ch | | || | || | | 11/03/2003 13:56 | | || |-+ -| | | | To: R-list [EMAIL PROTECTED] | |Martin Wegmann [EMAIL PROTECTED] | | cc: Owen, Jason [EMAIL PROTECTED] | | Subject: Re: [R] USA map | -| On 3 Nov 2003 at 16:33, Martin Wegmann wrote: On Monday 03 November 2003 15:46, Owen, Jason wrote: R users, In S, there was a function called usa() that would draw the map of the United States, plus it had other options for graphics. I have looked but I can't find the equivalent in R. Is there one? Description I don't know the usa() function in S but usa() in R gives a map of the US Where did you find that function? In rw1080 on windows XP I get: usa() Error: couldn't find function usa (and help.search(usa) does'nt give anything usefull) Kjetil Halvorsen that's the output of a usa search, perhaps that is what you are looking for: cheers Martin P.S.: www.freegis.org - GeoData is worth a look for more maps usa() {map} This database produces a map of the United States mainland generated from US Department of the Census data (see the reference). Usage data(usaMapEnv) Format The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAP_DATA_DIR for the datasets in the maps package) is set at package load time if it does not already exist. Hence setting the environment variable before loading the package can override the default location of the binary datasets. References Richard A. Becker, and Allan R. Wilks, Maps in S, ATT Bell Laboratories Statistics Research Report [93.2], 1993. Richard A. Becker, and Allan R. Wilks, Constructing a Geographical Database, ATT Bell Laboratories Statistics Research Report [95.2], 1995. US Department of Commerce, Census Bureau, County Boundary File, computer tape, available from Customer Services, Bureau of the Census, Washingdon DC 20233. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On Tue, 4 Nov 2003 [EMAIL PROTECTED] wrote: On 3 Nov 2003 at 15:04, [EMAIL PROTECTED] wrote: I believe in R you need library(maps) before using usa(). Of course, the library has to be installed first. Yes, I new that. When I did help.search(usa) I HAD maps attached. It dosen't have any function usa(). R is more international minded: library(maps) usa() Error: couldn't find function usa map('usa') map('china') map('bolivia') and so on also works! You need library(mapdata) for those. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
Prof Brian Ripley [EMAIL PROTECTED] wrote: On Tue, 4 Nov 2003 [EMAIL PROTECTED] wrote: On 3 Nov 2003 at 15:04, [EMAIL PROTECTED] wrote: I believe in R you need library(maps) before using usa(). Of course, the library has to be installed first. Yes, I new that. When I did help.search(usa) I HAD maps attached. It dosen't have any function usa(). R is more international minded: library(maps) usa() Error: couldn't find function usa map('usa') map('china') map('bolivia') and so on also works! You need library(mapdata) for those. Except the Bolivia map must be a local one (from [EMAIL PROTECTED]); it is not in library(mapdata). Ray Brownrigg __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On 5 Nov 2003 at 8:21, Ray Brownrigg wrote: Except the Bolivia map must be a local one (from [EMAIL PROTECTED]); it is not in library(mapdata). Ray Brownrigg Sorry, I should have typed library(maps) library(mapdata) map(worldHires,bolivia) which indeed shows a correctly-looking map. I also tried map(worldHires,sweden) map(worldHires,denmark) # which comes out very small since it # includes the Faroe # islands properly far- # away map(worldHires,andorra) map(worldHires,norway) # which for some reason is smaller in # the graphical window # than Andorra but I cannot find any function to find the avalable region names in a map database Kjetil Halvorsen __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
From [EMAIL PROTECTED] Wed Nov 5 11:31:52 2003 but I cannot find any function to find the avalable region names in a map database They are in the .N file for the appropriate map. Try: library(maps) data(worldMapEnv) file.show(paste(Sys.getenv(worldMapEnv), world.N, sep=/)) These ASCII files are in the form: region[:subregion] polygonNumber Ray Brownrigg __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On 3 Nov 2003 at 9:46, Owen, Jason wrote: library(maps) # since two days available precompiled for windows map('usa') Kjetil Halvorsen R users, In S, there was a function called usa() that would draw the map of the United States, plus it had other options for graphics. I have looked but I can't find the equivalent in R. Is there one? Thanks, Jason __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On Monday 03 November 2003 15:46, Owen, Jason wrote: R users, In S, there was a function called usa() that would draw the map of the United States, plus it had other options for graphics. I have looked but I can't find the equivalent in R. Is there one? Description I don't know the usa() function in S but usa() in R gives a map of the US that's the output of a usa search, perhaps that is what you are looking for: cheers Martin P.S.: www.freegis.org - GeoData is worth a look for more maps usa() {map} This database produces a map of the United States mainland generated from US Department of the Census data (see the reference). Usage data(usaMapEnv) Format The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAP_DATA_DIR for the datasets in the maps package) is set at package load time if it does not already exist. Hence setting the environment variable before loading the package can override the default location of the binary datasets. References Richard A. Becker, and Allan R. Wilks, Maps in S, ATT Bell Laboratories Statistics Research Report [93.2], 1993. Richard A. Becker, and Allan R. Wilks, Constructing a Geographical Database, ATT Bell Laboratories Statistics Research Report [95.2], 1995. US Department of Commerce, Census Bureau, County Boundary File, computer tape, available from Customer Services, Bureau of the Census, Washingdon DC 20233. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
On 3 Nov 2003 at 16:33, Martin Wegmann wrote: On Monday 03 November 2003 15:46, Owen, Jason wrote: R users, In S, there was a function called usa() that would draw the map of the United States, plus it had other options for graphics. I have looked but I can't find the equivalent in R. Is there one? Description I don't know the usa() function in S but usa() in R gives a map of the US Where did you find that function? In rw1080 on windows XP I get: usa() Error: couldn't find function usa (and help.search(usa) does'nt give anything usefull) Kjetil Halvorsen that's the output of a usa search, perhaps that is what you are looking for: cheers Martin P.S.: www.freegis.org - GeoData is worth a look for more maps usa() {map} This database produces a map of the United States mainland generated from US Department of the Census data (see the reference). Usage data(usaMapEnv) Format The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAP_DATA_DIR for the datasets in the maps package) is set at package load time if it does not already exist. Hence setting the environment variable before loading the package can override the default location of the binary datasets. References Richard A. Becker, and Allan R. Wilks, Maps in S, ATT Bell Laboratories Statistics Research Report [93.2], 1993. Richard A. Becker, and Allan R. Wilks, Constructing a Geographical Database, ATT Bell Laboratories Statistics Research Report [95.2], 1995. US Department of Commerce, Census Bureau, County Boundary File, computer tape, available from Customer Services, Bureau of the Census, Washingdon DC 20233. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
I don't know the usa() function in S but usa() in R gives a map of the US Where did you find that function? In rw1080 on windows XP I get: Some earlier versions of the maps package (which was then available for Unix only), did have individual functions for each country in the world database. In the current version, you need to type: library(maps) map(usa) #or: map(world2, USA) Ray Brownrigg __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] USA map
I believe in R you need library(maps) before using usa(). Of course, the library has to be installed first. Cheers, Andy __ Andy Jaworski Engineering Systems Technology Center 3M Center, 518-1-01 St. Paul, MN 55144-1000 - E-mail: [EMAIL PROTECTED] Tel: (651) 733-6092 Fax: (651) 736-3122 |-+ | | [EMAIL PROTECTED] | | | Sent by: | | | [EMAIL PROTECTED]| | | ath.ethz.ch | | || | || | | 11/03/2003 13:56 | | || |-+ -| | | | To: R-list [EMAIL PROTECTED] | |Martin Wegmann [EMAIL PROTECTED] | | cc: Owen, Jason [EMAIL PROTECTED] | | Subject: Re: [R] USA map | -| On 3 Nov 2003 at 16:33, Martin Wegmann wrote: On Monday 03 November 2003 15:46, Owen, Jason wrote: R users, In S, there was a function called usa() that would draw the map of the United States, plus it had other options for graphics. I have looked but I can't find the equivalent in R. Is there one? Description I don't know the usa() function in S but usa() in R gives a map of the US Where did you find that function? In rw1080 on windows XP I get: usa() Error: couldn't find function usa (and help.search(usa) does'nt give anything usefull) Kjetil Halvorsen that's the output of a usa search, perhaps that is what you are looking for: cheers Martin P.S.: www.freegis.org - GeoData is worth a look for more maps usa() {map} This database produces a map of the United States mainland generated from US Department of the Census data (see the reference). Usage data(usaMapEnv) Format The data file is merely an assignment to a character string which specifies the name of an environment variable which contains the base location of the binary files used by the map drawing functions. This environment variable (R_MAP_DATA_DIR for the datasets in the maps package) is set at package load time if it does not already exist. Hence setting the environment variable before loading the package can override the default location of the binary datasets. References Richard A. Becker, and Allan R. Wilks, Maps in S, ATT Bell Laboratories Statistics Research Report [93.2], 1993. Richard A. Becker, and Allan R. Wilks, Constructing a Geographical Database, ATT Bell Laboratories Statistics Research Report [95.2], 1995. US Department of Commerce, Census Bureau, County Boundary File, computer tape, available from Customer Services, Bureau of the Census, Washingdon DC 20233. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help