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

coord_proj() "Error: not implemented" #62

Open
eliocamp opened this issue Sep 4, 2019 · 5 comments
Open

coord_proj() "Error: not implemented" #62

eliocamp opened this issue Sep 4, 2019 · 5 comments

Comments

@eliocamp
Copy link

eliocamp commented Sep 4, 2019

I'm getting Error: Not implemented when trying to use coord_proj(). Running an example from the documentation:

library(ggplot2)
library(ggalt)

world <- map_data("world")
usa <- world[world$region == "USA",]
usa <- usa[!(usa$subregion %in% c("Alaska", "Hawaii")),]

gg <- ggplot()
gg <- gg + geom_cartogram(data=usa, map=usa,
                          aes(x=long, y=lat, map_id=region))
gg <- gg + coord_proj(
   paste0("+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96",
          " +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"))
gg
#> Error: Not implemented

I've installed the most recent github commit from ggalt and ggplot2.

@ChrisFishCahill
Copy link

ChrisFishCahill commented Apr 17, 2020

Hey folks,

I'm having the same problem as eliocamp here. Code that worked fine fall 2019 now fails with this "Error: Not Implemented" message.

This error appears even when I run the simple examples in the coord_proj() help file. I'm using ggalt_0.4.0 and ggplot2_3.3.0--is this me being silly or something else?

Also, when I re-install ggplot 3.2.1 from the archive the code seems to behave again, at least for me. FYI.

It is odd that the examples in the help file don't even run for me when they used to run perfectly fine.

@moritzpschwarz
Copy link

Any news on this?
The error seems to persist...

@eliocamp
Copy link
Author

Any news on this?
The error seems to persist...

Hi! My PR (#69) has a possible fix, you can install it with devtools::install_github("eliocamp/ggalt@new-coord-proj")

@moritzpschwarz
Copy link

Hi! My PR (#69) has a possible fix, you can install it with devtools::install_github("eliocamp/ggalt@new-coord-proj")

Thanks, that does indeed work! Great stuff!
It would be great to implement this in the package!!

@guohuansu
Copy link

Any news on this?
The error seems to persist...

Hi! My PR (#69) has a possible fix, you can install it with devtools::install_github("eliocamp/ggalt@new-coord-proj")

it doesn't work here.

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

4 participants