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

geom_flag() error (HTP 404) #20

Closed
shitiezhu opened this issue Nov 4, 2019 · 2 comments
Closed

geom_flag() error (HTP 404) #20

shitiezhu opened this issue Nov 4, 2019 · 2 comments

Comments

@shitiezhu
Copy link

I plotted with geom_flag but failed with the error
Error in download_url(path) :
Failed to download https://behdad.github.io/region-flags/png/ca.png (HTTP 404)
How to fix it?
Finally, in my case, I used ggflags instead but ggflags only plots round flags which is not what I want...

Many thanks!

@GuangchuangYu
Copy link
Owner

try:

library(ggimage)
ggplot(d, aes(x,y)) + geom_flag(image='CA')

The flag should be in upper case.

I will update ggimage to convert input flag ID to upper case.

GuangchuangYu added a commit that referenced this issue Nov 4, 2019
@shitiezhu
Copy link
Author

I see. Thank you!

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