https://github.com/ahasverus/geographr

An R package to have fun with geography

https://github.com/ahasverus/geographr

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

An R package to have fun with geography

Basic Info
  • Host: GitHub
  • Owner: ahasverus
  • License: gpl-3.0
  • Language: R
  • Default Branch: master
  • Size: 42.4 MB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created about 10 years ago · Last pushed over 8 years ago
Metadata Files
Readme License

README.md

geographr

An R package to test your skills in world geography.

Installation

You can install this package from Github.

```r

First install the devtools package (if not already installed)

install.packages('devtools')

Then install the geographr package

library(devtools) devtools::install_github('ahasverus/geographr')

And load the package

library(geographr) ```

Documentation

The geographr package contains seven main functions. All of these functions are available in two different languages: english (en) and french (fr). English is the default in all the functions.

Refine your geographic skills

```r

Default settings

learning(region = 'world', lang = 'en')

Short version

learning()

User settings usage

learning(region = 'south america', lang = 'fr') ```

Screenshot

Getting the correct spelling of countries and regions

```r

Get the correct spelling of regions

getregionname() getregionname(lang = 'fr')

Get the correct spelling of countries

getcountryname() getcountryname(lang = 'fr') ```

Identify countries on the map

```r

Default settings

find_country(region = 'europa', lang = 'en')

Short version

find_country()

User settings usage

find_country(region = 'africa', lang = 'fr') ```

Screenshot

Identify national flags

```r

Default settings

find_flag(region = 'world', lang = 'en')

Short version

find_flag()

User settings usage

find_flag(region = 'asia', lang = 'fr') ```

Screenshot

Locate regions on the country map

```r

Default settings (random country)

find_region(country = NULL, lang = 'en')

Short version

find_region()

User settings usage

find_region(country = 'spain', lang = 'en') ```

Screenshot

Locate n cities on the map

```r

Default settings (random country)

find_cities(country = NULL, n = 10, lang = 'en')

Short version

find_cities()

User settings usage

find_cities(country = 'france', n = 10, lang = 'en') ```

Screenshot

More than 40,000 towns are available. For instance, one thousand are available for France. But do not overload the map with a too higher number of towns. It will be unclickable...

Notes

The argument lang defines the language of the interface. But it has no impact when you search for a specific region/country: find_cities('spain') is the same as find_cities('Espagne'). Moreover search based on region and country is case-insensitive.

At the end of each function, take a look at the R console: some statistics are provided.

Cities and world shapefile come from the maps package. High resolution shapefiles come from GADM.

For a better visual experience, please do not resize graphical windows.

The function find_cities() needs more development. But it works. Enjoy!

Acknowledgments

Special thanks to KevCaz and SteveViss for their feedbacks ;)

License

This package is licensed to you under the terms of the GNU General Public License version 3 or later.

Owner

  • Name: Nicolas Casajus
  • Login: ahasverus
  • Kind: user
  • Location: Montpellier, France
  • Company: @FRBCesab

Data scientist

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • KevCaz (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

DESCRIPTION cran
  • mapproj * depends
  • maps * depends
  • png * depends
  • sp * depends