Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Plotting Individual Locations for all species data #6

Closed
pssguy opened this issue May 29, 2013 · 3 comments
Closed

Plotting Individual Locations for all species data #6

pssguy opened this issue May 29, 2013 · 3 comments
Labels

Comments

@pssguy
Copy link

pssguy commented May 29, 2013

Couple of points on the location map
The number of points appears to be the bison( ... count) value less 1
In your examples the count is 200 and points mapped 199
Why is that. Might be meaningful for small numbers

If I want to plot all the individual points for a species I tried
df.init <- bison(species = "Ursus americanus", type = "scientific_name", start = 0, count = 10)
bisonmap(df.init)

Rendering map...plotting 9 points

df <- bison(species = "Ursus americanus", type = "scientific_name", start = 0, count = df.init$total)
bison_data(df)
total observation fossil specimen literature unknown centroid
1 3792 59 125 3522 47 39 78

but then
bisonmap(df)
Error in data.frame(id = "699511081", name = "Ursus americanus", NA = NULL, :
arguments imply differing number of rows: 1, 0

I get the same error if I try to extract the data for further manipulation
geo <- bison_data(df, "data")

@sckott
Copy link
Contributor

sckott commented May 29, 2013

Thanks for this!

Hmm, not sure why that would be, I'll look into that N-1 problem.

A couple points

  • You don't need to specify the start parameter anymore, it will start at zero by default.

Looking into that problem w

Error in data.frame(id = "699511081", name = "Ursus americanus", NA = NULL, :
arguments imply differing number of rows: 1, 0

@sckott
Copy link
Contributor

sckott commented May 29, 2013

Many of the occurrences didn't have lat/long values, pushing code now

@sckott sckott closed this as completed in f1af9fc May 29, 2013
@sckott
Copy link
Contributor

sckott commented May 29, 2013

Just pushed changes, try installing from github, andn trying those examples again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants