![](https://secure.gravatar.com/avatar/6f284b2daa332ad503c1b9398a9a033b.jpg?s=120&d=mm&r=g)
How do I create flight period charts for a specific (butterfly) species using the api ? An example of a flight period chart has been added (taken from http://www.microvlinders.nl/soorten/species.php?speciescode=430050&p=3.
Regards,
Adriaan van Os
![](https://secure.gravatar.com/avatar/49b8ed77ff1122d228973d73457dd695.jpg?s=120&d=mm&r=g)
Hi Adriaan,
Using the rgbif https://ropensci.org/tutorials/rgbif_tutorial/ API client you can do:
library(rgbif) library(ggplot2)
o <- occ_search(scientificName = "Pyrgus malvae", limit = 200000, fields = c("name", "month"))
ggplot(o$data) + geom_bar(aes(x = month), stat = "count", width = 1) + scale_x_continuous(breaks = seq(1, 12))
Best regards, Pieter
On 5 April 2018 at 16:07, Adriaan van Os adriaan@adriaan.biz wrote:
How do I create flight period charts for a specific (butterfly) species using the api ? An example of a flight period chart has been added (taken from http://www.microvlinders.nl/soorten/species.php?speciescode =430050&p=3.
Regards,
Adriaan van Os
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
![](https://secure.gravatar.com/avatar/6f284b2daa332ad503c1b9398a9a033b.jpg?s=120&d=mm&r=g)
Pieter Provoost wrote:
Hi Adriaan,
Using the rgbif https://ropensci.org/tutorials/rgbif_tutorial/ API client you can do:
Thanks,
Adriaan van Os
participants (2)
-
Adriaan van Os
-
Pieter Provoost