hrbrmstr / albersusa

Tools, shapefiles & data to work with an "AlbersUSA" composite projection in R
Other
77 stars 16 forks source link

points_elided() maps don't work in rmarkdown document #18

Open jzadra opened 5 years ago

jzadra commented 5 years ago

I"m generating two maps, one using the usa_composite(), and another using a shapefile downloaded from elsewhere.

For each of them, I apply points_elided() and then use ggmap().

When I generate one off maps inside RStudio, I get the correct output for both shapes. However, when I knit the document, the standard use_composite() shape map looks right, but the other one comes out wonky.

image

Any suggestions about what could be happening with rmarkdown that causes these to behave differently?

jzadra commented 5 years ago

I was just able to figure out that this has only started occurring after I updated albersusa a few days.

jzadra commented 5 years ago

I've just reverted to cf69f038a253abfba601487e0a59399920679446 and the issue is gone.

install_github("hrbrmstr/albersusa", ref = "cf69f038a253abfba601487e0a59399920679446")

Apologies for lack of reprex, I"m on a deadline!

NateMietk commented 4 years ago

resolved my issue too. thanks! @jzadra