[API-users] Flight period charts ?

Pieter Provoost pieterprovoost at gmail.com
Thu Apr 5 16:41:17 CEST 2018


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 at 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 at lists.gbif.org
> https://lists.gbif.org/mailman/listinfo/api-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20180405/d412f1db/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyrmal.png
Type: image/png
Size: 19049 bytes
Desc: not available
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20180405/d412f1db/attachment-0001.png>


More information about the API-users mailing list