ggalt icon indicating copy to clipboard operation
ggalt copied to clipboard

` coord_proj()` "Error: not implemented"

Open eliocamp opened this issue 4 years ago • 5 comments

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.

eliocamp avatar Sep 04 '19 18:09 eliocamp

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.

ChrisFishCahill avatar Apr 17 '20 14:04 ChrisFishCahill

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

moritzpschwarz avatar Oct 26 '20 12:10 moritzpschwarz

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")

eliocamp avatar Oct 26 '20 14:10 eliocamp

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!!

moritzpschwarz avatar Oct 26 '20 22:10 moritzpschwarz

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.

guohuansu avatar Mar 21 '22 16:03 guohuansu