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

Is it possible to map more than one state by county at once #3

Closed
pssguy opened this issue Feb 7, 2014 · 3 comments
Closed

Is it possible to map more than one state by county at once #3

pssguy opened this issue Feb 7, 2014 · 3 comments

Comments

@pssguy
Copy link

pssguy commented Feb 7, 2014

Hi
Nice work with the update.
The states argument of choroplethr_acs (and choroplethr)
is defined as "A vector of states to render. Defaults to state.abb"
This implies more than one state
But although either
choroplethr_acs(tableId="B19301", lod="county", states="CA")
or
choroplethr_acs(tableId="B19301", lod="county", states=c("OR"))
work fine
choroplethr_acs(tableId="B19301", lod="county", states=c("CA,OR"))
causes the Error: states %in% state.abb is not TRUE

@arilamstein
Copy link
Contributor

In your third case you have created a vector of one element with a code that is not a recognized state "CA,OR". Try this instead:

choroplethr_acs(tableId="B19301", lod="county", states=c("CA","OR"))

That creates a vector of two elements, each of which is a code.

If this works, can you please mark the issue as resolved? Thanks.

@pssguy
Copy link
Author

pssguy commented Feb 7, 2014

Sorry, that was pretty embarrassing . It had been a long day!

@pssguy pssguy closed this as completed Feb 7, 2014
@arilamstein
Copy link
Contributor

Don't worry about it. I've done it too :)

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