# iNat Visualizations Using R

**URL:** <https://forum.inaturalist.org/t/inat-visualizations-using-r/13724>\
**Category:** General\
**Tags:** third-party-tools\
**Created:** [June 24, 2020, 6:52pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724 "2020-06-24T18:52:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![whimbrelbirder](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/whimbrelbirder/32/1833_2.png) [@whimbrelbirder](https://forum.inaturalist.org/u/whimbrelbirder)\
**Post date:** [June 24, 2020, 6:52pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/1 "2020-06-24T18:52:07Z")

</div>

If anyone is interested in visualizing their iNat data, I’m currently making a repository on GitHub that will be full of code for producing some cool graphics done with R. Also, if you have any suggestions for a visualization I don’t have yet in the repo or if you don’t know how to use R, dm me and I will make it for you.

If you notice any errors in the code or a way to make the visualizations better, feel free to file an issue in the repo.

The link to repository is here at: [https://github.com/oliverburrus/iNat\_Visualizations](https://github.com/oliverburrus/iNat_Visualizations)

Lastly, if you would like to contribute to the repo yourself lmk and I can make you a collaborator.

---

<div class="post-metadata">

**Author:** ![cthawley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/cthawley/32/1445_2.png) [@cthawley](https://forum.inaturalist.org/u/cthawley)\
**Post date:** [June 24, 2020, 7:07pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/2 "2020-06-24T19:07:28Z")

</div>

@alexis18 and @pisum may have some good thoughts and have done some previous viz work with iNat and R: [https://forum.inaturalist.org/t/what-things-are-misidentified-as-large-milkweed-bug/12571](https://forum.inaturalist.org/t/what-things-are-misidentified-as-large-milkweed-bug/12571)

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [June 24, 2020, 7:26pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/3 "2020-06-24T19:26:45Z")

</div>

i’m actually not an R person, but there are plenty of folks who have mentioned making things for iNat for and related to R (feel free to add to this wiki post, if you like):

> [@iNaturalist Visualization: What introduced species are in my place?](https://forum.inaturalist.org/t/inaturalist-visualization-what-introduced-species-are-in-my-place/12889/1):
>
> Since you all were as excited about my last visualization about [milkweed bug misidentifications](https://alexis-catherine.github.io/visualization/inaturalist-sankey-diagram/) as I was, I thought I’d share one I put together about invasive species.
> 
> This one takes a place\_id and plots the introduced species as bubbles sized by the number of research-grade observations in that place. The colors correspond to the iconic taxon.
> 
> Bubble plots are a fun way to communicate biodiversity data, in my opinion, and can help you compare between sites at a glance.
> 
> The code for this visualization is [here](https://alexis-catherine.github.io/visualization/inaturalist-invasive-bubble-plot/). It doesn’t handle huge numbers of observations super well, both in terms of speed and visualizations, so I recommend places with \<50,000 total verifiable observations.

> [@iNaturalist Visualization: Flexdashboard (R markdown)](https://forum.inaturalist.org/t/inaturalist-visualization-flexdashboard-r-markdown/13036/1):
>
> I am working on a R code to produce dashboards with plots, tables and others, to show inaturalist data on a web site.
> 
> Some examples can be found [here](https://www.proyectosub.org.ar/en/inaturalist_en/) (view results).
> 
> Code [here](https://github.com/gonzalobravoargentina/inat_flexdashboard_ARG).

> [@iNaturalist User Trends with R](https://forum.inaturalist.org/t/inaturalist-user-trends-with-r/12538/1):
>
> The app: [https://jonathanlayman001.shinyapps.io/iNaturalist\_user\_trends/](https://jonathanlayman001.shinyapps.io/iNaturalist_user_trends/)

> [@Looking for iNaturalist observation map visualisation suggestions](https://forum.inaturalist.org/t/looking-for-inaturalist-observation-map-visualisation-suggestions/7322/2):
>
> For heatmap of either single species observations or single user observations check this online app.  
> [https://github.com/Vojczech/iNaturalist\_app](https://github.com/Vojczech/iNaturalist_app)

> [@Using R to extract observations of a specific phenological state](https://forum.inaturalist.org/t/using-r-to-extract-observations-of-a-specific-phenological-state/7007/6):
>
> Check out my iNat profile for installation instructions and examples of a beta R package that can handle this request: [https://www.inaturalist.org/people/hanly](https://www.inaturalist.org/people/hanly)

> [@1M Observations this month](https://forum.inaturalist.org/t/1m-observations-this-month/2582/4):
>
> Here’s the little R script I used to make that fig from the iNat API

A post from github I saw on twitter for making chloropleths of seasonal iNat observation data: [https://github.com/alexkrohn/reptile-choropleth](https://github.com/alexkrohn/reptile-choropleth)

---

<div class="post-metadata">

**Author:** ![optilete](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/optilete/32/1908_2.png) [@optilete](https://forum.inaturalist.org/u/optilete)\
**Post date:** [June 24, 2020, 8:33pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/4 "2020-06-24T20:33:21Z")

</div>

Cool!

---

<div class="post-metadata">

**Author:** ![crellow](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/crellow/32/2265_2.png) [@crellow](https://forum.inaturalist.org/u/crellow)\
**Post date:** [June 24, 2020, 9:14pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/5 "2020-06-24T21:14:13Z")

</div>

I don’t have much else to say at the moment, but this is great. Keen to see where this goes.

Actually I’m not sure whether the links that @pisum provided will mention it at all, but there’s also the `rinat` package here: [https://github.com/ropensci/rinat](https://github.com/ropensci/rinat).

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [June 25, 2020, 2:01am UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/6 "2020-06-25T02:01:40Z")

</div>

> [@crellow](#):
>
> there’s also the `rinat` package

from what i can tell, the rinat package is a little dated at this point. it seems to hit the old iNaturalist API, which is deprecated at this point, and rinat doesn’t seem to be actively developed any more. i think it would be better to use hanly’s thing above, which hits the current v1 API, or just hit the API directly yourself. (the v2 API is currently in development. so even the current v1 API and anything built on it may be dated soon, too.)

> [@crellow](#):
>
> I’m not sure whether the links that @pisum provided will mention it at all

it’s definitely not all of it. the above items are only the things i remember of that relate to visualizations or ways to get data from the API into R. (i remember other people using R to do other things like modify EXIF data, etc.)

i just made my earlier post a wiki. so if you want to add to it, feel free to add to it, if you like.

---

<div class="post-metadata">

**Author:** ![dataecologist](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/dataecologist/32/8889_2.png) [@dataecologist](https://forum.inaturalist.org/u/dataecologist)\
**Post date:** [June 25, 2020, 1:14pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/7 "2020-06-25T13:14:04Z")

</div>

I also made this visual not long ago to show the most popular species in each state

 ![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/0/028391525a10bdfaaaec8346525975c6426929f4.jpeg)

Note that observation are tallied so there is 1 “vote” per user per species/state/month. This minimizes the effect of super-users, and also makes it so top species on the website do not necessarily match

---

<div class="post-metadata">

**Author:** ![sarahshearer](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/sarahshearer/32/10378_2.png) [@sarahshearer](https://forum.inaturalist.org/u/sarahshearer)\
**Post date:** [June 25, 2020, 2:37pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/8 "2020-06-25T14:37:56Z")

</div>

@mikeakresh, check this out! Have you ever used iNat data for visualization using R?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/7/7831452cf7f0d653ff1ffd34176334b7ef1b6a17.png) [@system](https://forum.inaturalist.org/u/system)\
**Post date:** [August 24, 2020, 2:40pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/9 "2020-08-24T14:40:34Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![carrieseltzer](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/carrieseltzer/32/38544_2.png) [@carrieseltzer](https://forum.inaturalist.org/u/carrieseltzer)\
**Post date:** [December 3, 2021, 1:57am UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/10 "2021-12-03T01:57:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![rion\_science](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/rion_science/32/29634_2.png) [@rion\_science](https://forum.inaturalist.org/u/rion_science)\
**Post date:** [September 8, 2022, 7:03pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/11 "2022-09-08T19:03:42Z")

</div>

```auto
rinat

```

has been updated 3 months ago.

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [September 8, 2022, 9:52pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/12 "2022-09-08T21:52:43Z")

</div>

it may be updated, but as far as i can tell, it still hits the deprecated iNat API. is there any reason to use rinat for new development rather than hitting the current /v1 API directly or using some other wrapper package that hits the /v1 API? (just for example, rOpenSci also provides the [spocc](https://github.com/ropensci/spocc) package which will allow you to get info from iNat’s /v1 API, along with other sources like GBIF, eBird, etc.)

---

<div class="post-metadata">

**Author:** ![rion\_science](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/rion_science/32/29634_2.png) [@rion\_science](https://forum.inaturalist.org/u/rion_science)\
**Post date:** [September 8, 2022, 10:30pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/13 "2022-09-08T22:30:33Z")

</div>

Thanks `spocc` is much better!

---

<div class="post-metadata">

**Author:** ![bouteloua](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/bouteloua/32/1180_2.png) [@bouteloua](https://forum.inaturalist.org/u/bouteloua)\
**Post date:** [March 20, 2026, 2:42pm UTC](https://forum.inaturalist.org/t/inat-visualizations-using-r/13724/14 "2026-03-20T14:42:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
