I also received the error message after trying multiple people’s usernames. The only time there isn’t an error is when I use @jlayman’s name.
If you run into error messages, try reopening the app; I believe that this is a shinyapps issue due to the amount of traffic. Shinyapps is by no means a perfect platform.
@zorrosidekick got your errors after the first try, but the app worked for your username after I restarted it.
This is really cool! Thanks jlayman.
I thought the most interesting thing was the “month” graph. This month so far I’ve been feeling really bogged down, suddenly too busy to do as much observing as I’d like… and now I see that according to my stats I always have a May slump! March and April are really high, June-July-August-September really high, but May is just low. Must be May is always my spring “crunch time” for non-iNat things. There’s also a noticeable spike in December- must be when the cabin fever really hits.
That is really cool
there may be more efficient ways to collect user stats than to aggregate / visualize after downloading a user’s entire set of observations, especially if the user has a lot of observations. i think each of the things you’re showing can be accomplished via specific API endpoint (http://api.inaturalist.org/v1/docs/):
- Major Taxa – do a Get Observations request for each iconic taxon, returning just one record for each request with only the id, and then use the total_results value from each result set.
- Top Species – use the Get Observations Species Counts endpoint
- Quality Grade – do a Get Observations request for each quality grade, returning just one record for each request with only the id, and then use the total_results value from each result set.
- Month – use the Get Observations Histogram endpoint
- Map – use the Observations Tiles set of your choice, plus the associated UTFGrid if you want to be able to show associated details when clicking on a marker.
what you created may be a good learning exercise, and it may work for many use cases, but you may want to consider making it more efficient if you find that other people start using it a lot.
This is great! Thanks Jonathon. One thing though, is it possibly to make it so it shows your most ID’d organisms too?
@pisum This was for a class on programming with R. The package for interfacing with iNaturalist and getting data,
rinat, is still being developed, and currently can’t do any of those things outright- hence my brute force approach of downloading all observations and manipulating the data afterwards to achieve my objectives.
@abersbird bird The R package for handling iNaturalist data,
rinat, currently doesn’t have the ability to access identification data, so I wouldn’t be able to do so without figuring out how to use the API.
i’m not an R user myself, but i would guess it should be fairly straightforward to get data from the iNat API without rinat. if you figure out the basic process for that, i think that would open up a lot of possibilities for getting data from iNat, as well as other sources. this may help guide you down that path, if you’re interested: https://datascienceplus.com/accessing-web-data-json-in-r-using-httr/ or https://blog.exploratory.io/working-with-json-data-in-very-simple-way-ad7ebcc0bb89 or http://zevross.com/blog/2015/02/12/using-r-to-download-and-parse-json-an-example-using-data-from-an-open-data-portal/.
UPDATE: actually, i just remembered something. here’s some code that loarie posted in another thread that shows exactly how to pull data from the histogram API endpoint and generate a graph:
Just to clarify – rinat is apparently no longer being developed. CRAN dropped the rinat package in January due to lack of response from the developers (see here). Looking at the rinat GitHub page (github.com/ropensci/rinat), there’s been almost no work done on it since last summer.
jlayman - This is very cool. Thank you!
not user stats related, but here’s another example of R code leveraging the iNaturalist API: https://forum.inaturalist.org/t/what-things-are-misidentified-as-large-milkweed-bug/12571/4.
Does this work with firefox? I load the page, leave the default username, click in that field, hit enter, and nothing happens.
Looks like it behaves the same way in chrome.
Okay, that’s what it does when it’s working. You enter a user name, hit enter, and it does nothing, giving no hint of whether or not it’s working, for a long time. And then you get graphs and stuff. Some kind of loading / processing indication would be nice.
Doesn’t work (Safari browser). Enter user ID and it just sits there doing nothing.
It does take a long time to do its job.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.