marinebon / py-dwc-viz

Python Package for data analysis and visualisation for Darwin Core data, with plug-and-play from providers like OBIS and GBIF.
https://marinebon.github.io/py-dwc-viz/
GNU General Public License v3.0
1 stars 1 forks source link

[feature] Adding a function for taxonomic distribution sunburst plot #4

Closed ayushanand18 closed 2 years ago

ayushanand18 commented 2 years ago

Overview

This PR aims to create a function to view the taxonomic distribution from occurrence records sourced through OBIS (pyobis).

This uses plotly in the backend.

Example Usage

from pydwcviz import taxon
from pyobis.occurrences import OccQuery
occ = OccQuery()

# get the data and the figure object
fig = taxon.plot_dist(occ.search(scientificname = "Mola mola"))

# show the figure
fig.show()

Thanks!