Skip to content

Instantly share code, notes, and snippets.

@smithaam
Created December 23, 2016 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smithaam/38b68fd491da565e629a124b2f4db5de to your computer and use it in GitHub Desktop.
Save smithaam/38b68fd491da565e629a124b2f4db5de to your computer and use it in GitHub Desktop.
#Based on Region
cmp=filter(gpiplot,gpiplot$CountryCode %in% c("ARB","CEB","EAP","EAS","ECS","EMU","FCS","LAC","MEA","MNA","SSF"))
g <- ggplot(data=cmp, aes(x=Year, y=GPI))
g+geom_line(aes(color=CountryName)) +labs(color="Region")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment