Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JOSS review: Projection specification in glottomap #110

Closed
skalyan91 opened this issue Jun 17, 2022 · 1 comment
Closed

JOSS review: Projection specification in glottomap #110

skalyan91 opened this issue Jun 17, 2022 · 1 comment

Comments

@skalyan91
Copy link

The 'pacific' value of the projection argument of glottomap() does not work; I get the following error:

Error in `.data[["black"]]`:
! Column `black` not found in `.data`.
Run `rlang::last_error()` to see where the error occurred.

In addition, the documentation says that projections other than equal-area and Pacific-centred equal-area may be specified by their “EPSG code”. This is inaccurate: in fact, the function requires the EPSG description, not the EPSG code. E.g. for the “World Mollweide” projection, the EPSG code is 54009, but the description is +proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs; only the latter (as a string) is a valid projection argument of the glottomap() function.

@SietzeN
Copy link
Collaborator

SietzeN commented Jul 18, 2022

Hi @skalyan91 !

I've fixed the error with the 'pacific' projection.

The function does accept an EPSG code, but this should be the full code, not only the number. I've added an example in the 'projection' parameter description in the glottomap function.

For example: glottomap(projection = "ESRI:54009") plots all languages worldwide in the World Mollweide projection.

I will close this issue with the next push.

Thanks!
Sietze

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants