{"id":1079,"name":"rfisheries","description":"Interacting with fisheries databases at openfisheries.org.","url":"https://github.com/ropensci/rfisheries","last_synced_at":"2026-04-03T12:30:24.156Z","repository":{"id":56937705,"uuid":"2682704","full_name":"ropensci/rfisheries","owner":"ropensci","description":"package for interacting with fisheries databases at openfisheries.org","archived":false,"fork":false,"pushed_at":"2020-05-13T12:43:45.000Z","size":779,"stargazers_count":26,"open_issues_count":8,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-03-05T01:58:06.935Z","etag":null,"topics":["fisheries","open-data","openfisheries","r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/rfisheries","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-31T18:29:04.000Z","updated_at":"2024-07-20T22:19:23.000Z","dependencies_parsed_at":"2022-08-21T06:50:17.884Z","dependency_job_id":null,"html_url":"https://github.com/ropensci/rfisheries","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/rfisheries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/rfisheries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30691529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-19T04:38:48.377Z","status":"ssl_error","status_checked_at":"2026-03-19T04:38:19.675Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"ropensci","name":"rOpenSci","uuid":"1200269","kind":"organization","description":"","email":"info@ropensci.org","website":"https://ropensci.org/","location":"Berkeley, CA","twitter":"rOpenSci","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1200269?v=4","repositories_count":307,"last_synced_at":"2023-03-10T20:30:59.242Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T19:23:08.224Z","updated_at":"2023-03-10T20:30:59.305Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci/repositories"},"packages":[{"id":441851,"name":"rfisheries","ecosystem":"cran","description":"'Programmatic Interface to the 'openfisheries.org' API'","homepage":"http://www.github.com/ropensci/rfisheries","licenses":"MIT + file LICENSE","normalized_licenses":["MIT"],"repository_url":"https://github.com/ropensci/rfisheries","keywords_array":[],"namespace":null,"versions_count":6,"first_release_published_at":"2013-05-29T07:54:00.000Z","latest_release_published_at":"2013-12-10T20:19:00.000Z","latest_release_number":"0.0.6","last_synced_at":"2026-02-18T15:00:58.542Z","created_at":"2022-04-07T00:47:51.659Z","updated_at":"2026-02-18T15:00:58.542Z","registry_url":"https://cran.r-project.org/package=rfisheries","install_command":null,"documentation_url":"http://cran.r-project.org/web/packages/rfisheries/rfisheries.pdf","metadata":{},"repo_metadata":{"id":56937705,"uuid":"2682704","full_name":"ropensci/rfisheries","owner":"ropensci","description":"package for interacting with fisheries databases at openfisheries.org","archived":false,"fork":false,"pushed_at":"2020-05-13T12:43:45.000Z","size":779,"stargazers_count":26,"open_issues_count":8,"forks_count":9,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T20:59:46.374Z","etag":null,"topics":["fisheries","open-data","openfisheries","r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/rfisheries","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-31T18:29:04.000Z","updated_at":"2024-07-20T22:19:23.000Z","dependencies_parsed_at":"2022-08-21T06:50:17.884Z","dependency_job_id":null,"html_url":"https://github.com/ropensci/rfisheries","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/rfisheries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222132441,"owners_count":16936599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"ropensci","name":"rOpenSci","uuid":"1200269","kind":"organization","description":"","email":"info@ropensci.org","website":"https://ropensci.org/","location":"Berkeley, CA","twitter":"rOpenSci","company":null,"icon_url":"https://avatars.githubusercontent.com/u/1200269?v=4","repositories_count":307,"last_synced_at":"2023-03-10T20:30:59.242Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ropensci","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T19:23:08.224Z","updated_at":"2023-03-10T20:30:59.305Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci/repositories"},"tags":[{"name":"CRAN-release-0.2","sha":"2090432d47cf6aad5e863f7a1e79738cc1af4ee5","kind":"tag","published_at":"2016-02-19T19:36:52.000Z","download_url":"https://codeload.github.com/ropensci/rfisheries/tar.gz/CRAN-release-0.2","html_url":"https://github.com/ropensci/rfisheries/releases/tag/CRAN-release-0.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags/CRAN-release-0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags/CRAN-release-0.2/manifests"},{"name":"0.0.6","sha":"feea1faf87cfdd5b8fe02a8d196106e11f88c477","kind":"tag","published_at":"2013-12-09T21:08:16.000Z","download_url":"https://codeload.github.com/ropensci/rfisheries/tar.gz/0.0.6","html_url":"https://github.com/ropensci/rfisheries/releases/tag/0.0.6","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags/0.0.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/tags/0.0.6/manifests"}]},"repo_metadata_updated_at":"2024-10-29T23:39:46.506Z","dependent_packages_count":0,"downloads":324,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":47.88681462731094,"dependent_repos_count":24.381865027347104,"dependent_packages_count":27.984450571803098,"stargazers_count":10.759007278151982,"forks_count":6.925545861398671,"docker_downloads_count":null,"average":23.587536673202358},"purl":"pkg:cran/rfisheries","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/cran/rfisheries","docker_dependents_count":1,"docker_downloads_count":88618,"usage_url":"https://repos.ecosyste.ms/usage/cran/rfisheries","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cran/rfisheries/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2024-10-29T20:00:29.979Z","issues_count":18,"pull_requests_count":6,"avg_time_to_close_issue":11562252.454545455,"avg_time_to_close_pull_request":797767.6,"issues_closed_count":11,"pull_requests_closed_count":5,"pull_request_authors_count":4,"issue_authors_count":7,"avg_comments_per_issue":2.2777777777777777,"avg_comments_per_pull_request":0.5,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/issues","maintainers":[{"login":"karthik","count":11,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/karthik"},{"login":"hadley","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hadley"},{"login":"mpadge","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mpadge"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/rfisheries/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/rfisheries/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/rfisheries/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/rfisheries/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages/rfisheries/codemeta","maintainers":[{"uuid":"karthik.ram@gmail.com","login":null,"name":"Karthik Ram","email":"karthik.ram@gmail.com","url":null,"packages_count":3,"html_url":null,"role":null,"created_at":"2022-11-14T17:25:55.795Z","updated_at":"2022-11-14T17:25:55.795Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/maintainers/karthik.ram@gmail.com/packages"}],"registry":{"name":"cran.r-project.org","url":"https://cran.r-project.org","ecosystem":"cran","default":true,"packages_count":27510,"maintainers_count":15210,"namespaces_count":0,"keywords_count":0,"github":"r-project-org","metadata":{"icon_url":"https://cran.r-project.org/CRANlogo.png"},"icon_url":"https://cran.r-project.org/CRANlogo.png","created_at":"2022-04-06T16:32:25.637Z","updated_at":"2026-03-02T11:25:28.083Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/cran.r-project.org/namespaces"}}],"commits":{"id":725802,"full_name":"ropensci/rfisheries","default_branch":"master","total_commits":126,"total_committers":6,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":21.0,"dds":0.1507936507936508,"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2026-03-02T19:01:59.680Z","last_synced_commit":"c20f80c7af3e2d49b275214d356b712a07a88c3f","created_at":"2023-03-09T13:14:42.654Z","updated_at":"2026-03-02T19:01:33.162Z","committers":[{"name":"Karthik Ram","email":"karthik.ram@gmail.com","login":"karthik","count":107},{"name":"Carl Boettiger","email":"cboettig@gmail.com","login":"cboettig","count":8},{"name":"Scott Chamberlain","email":"myrmecocystus@gmail.com","login":"sckott","count":5},{"name":"Andrew J Dyck","email":"github@andrewdyck.com","login":null,"count":3},{"name":"Katrin Leinweber","email":"9948149+katrinleinweber","login":"katrinleinweber","count":2},{"name":"rOpenSci Bot","email":"myrmecocystus+ropenscibot@gmail.com","login":null,"count":1}],"past_year_committers":[],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-03-04T00:00:12.294Z","repositories_count":6184573,"commits_count":930632487,"contributors_count":36043938,"owners_count":1146406,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"ropensci/rfisheries","html_url":"https://github.com/ropensci/rfisheries","last_synced_at":"2025-09-01T03:33:10.288Z","status":"error","issues_count":18,"pull_requests_count":6,"avg_time_to_close_issue":11562252.454545455,"avg_time_to_close_pull_request":797767.6,"issues_closed_count":11,"pull_requests_closed_count":5,"pull_request_authors_count":4,"issue_authors_count":7,"avg_comments_per_issue":2.2777777777777777,"avg_comments_per_pull_request":0.5,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2023-05-09T10:35:15.892Z","updated_at":"2025-09-01T03:33:10.289Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frfisheries/issues","issue_labels_count":{"0 - Backlog":1,"4 - Done":1},"pull_request_labels_count":{},"issue_author_associations_count":{"MEMBER":11,"NONE":4,"CONTRIBUTOR":3},"pull_request_author_associations_count":{"CONTRIBUTOR":4,"MEMBER":2},"issue_authors":{"karthik":10,"sckott":3,"matteodefelice":1,"Pielewuiter":1,"hadley":1,"CottonRockwood":1,"andrewdeines":1},"pull_request_authors":{"katrinleinweber":2,"sckott":2,"mpadge":1,"karthik":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-03-04T00:00:11.190Z","repositories_count":13576854,"issues_count":34973700,"pull_requests_count":114022297,"authors_count":11181962,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[{"login":"karthik","count":11,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/karthik"},{"login":"hadley","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/hadley"},{"login":"mpadge","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mpadge"}],"active_maintainers":[]},"events":{"total":{},"last_year":{}},"keywords":["fisheries","open-data","openfisheries","r","r-package","rstats"],"dependencies":[{"ecosystem":"cran","filepath":"DESCRIPTION","sha":null,"kind":"manifest","created_at":"2022-08-21T06:50:17.783Z","updated_at":"2022-08-21T06:50:17.783Z","repository_link":"https://github.com/ropensci/rfisheries/blob/master/DESCRIPTION","dependencies":[{"id":2202620420,"package_name":"R","ecosystem":"cran","requirements":"\u003e= 2.15","direct":true,"kind":"depends","optional":false},{"id":2202620421,"package_name":"httr","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2202620422,"package_name":"data.table","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2202620423,"package_name":"assertthat","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2202620424,"package_name":"ggplot2","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false},{"id":2202620425,"package_name":"rjson","ecosystem":"cran","requirements":"*","direct":true,"kind":"imports","optional":false}]}],"score":16.713893474003587,"created_at":"2023-09-11T11:54:36.841Z","updated_at":"2026-04-03T12:30:24.170Z","avatar_url":"https://github.com/ropensci.png","language":"R","category":"Biosphere","sub_category":"Marine Life and Fishery","monthly_downloads":324,"total_dependent_repos":1,"total_dependent_packages":0,"readme":"\nLinux: ![travis](https://travis-ci.org/ropensci/rfisheries.png)  \nWindows: [![Build status](https://ci.appveyor.com/api/projects/status/agi7g487s4g53u4p)](https://ci.appveyor.com/project/karthik/rfisheries)  \n![CRAN_downloads](http://cranlogs.r-pkg.org/badges/rfisheries)  \n\n\n# rfisheries #\n![beta logo](https://raw.github.com/ropensci/rfisheries/master/betaLogo.png)\n\nThis package provides programmatic access to the [openfisheries](http://openfisheries.org/) [API](http://openfisheries.org/api-info).\nOpen Fisheries is a platform that aggregates global fishery data and currently offers global fish capture landings from 1950 onwards (more data coming soon). Read more about that effort [here](http://openfisheries.org/about).\n\n# Installing #\n\n```r\ninstall.packages(\"rfisheries\")\n```\n\nor grab the development version. To install this version you'll need the `devtools` package first.\n\n\n```r\n# install.packages('devtools')\ndevtools::install_github('ropensci/rfisheries')\n```\n\n# Usage #\nPackage currently provides three basic functions. Landings data can be obtained by calling `landings()`\n\n```r\nlibrary(rfisheries)\nof_landings()\n   catch year\n1 19234925 1950\n2 21691884 1951\n3 23653027 1952\n4 24076599 1953\n5 25988306 1954\n6 27510779 1955\n...\n\n# To get country specific data, provide a iso3c country code\n\nof_landings(country = \"USA\")\n    catch year\n1 2629961 1950\n2 2452312 1951\n3 2472565 1952\n4 2534099 1953\n5 2596039 1954\n6 2621021 1955\n...\n\n# To get species specific landings, provide the correct a3 code for the required species.\n\nof_landings(species = \"SKJ\")\n   catch year\n1 162750 1950\n2 185848 1951\n3 157411 1952\n4 164629 1953\n5 210702 1954\n6 189223 1955\n...\n```\n\nIf you don't have know the correct species or country codes, you can get a complete list with the following two functions.\n\n```r\nof_species_codes()\n         scientific_name   taxocode a3_code isscaap\n1     Petromyzon marinus 1020100101     LAU      25\n2   Lampetra fluviatilis 1020100201     LAR      25\n3    Lampetra tridentata 1020100202     LAO      25\n4 Ichthyomyzon unicuspis 1020100401     LAY      25\n5    Eudontomyzon mariae 1020100501     LAF      25\n6      Geotria australis 1020100701     LAE      25\n             english_name\n1             Sea lamprey\n2           River lamprey\n3         Pacific lamprey\n4          Silver lamprey\n5 Ukrainian brook lamprey\n6         Pouched lamprey\n...\n\n# Similarly you can get a full list of country codes\nof_country_codes()\n         country iso3c\n1    Afghanistan   AFG\n2        Albania   ALB\n3        Algeria   DZA\n4 American Samoa   ASM\n5        Andorra   AND\n6         Angola   AGO\n```\n\n## Example: Compare landings from multiple countries\n\n```r\nlibrary(plyr)\nlibrary(rfisheries)\ncountries \u003c- of_country_codes()\n# let's take a small subset, say 5 random countries\nc_list \u003c- countries[sample(nrow(countries), 5),]$iso3c\n# and grab landings data for these countries\nresults \u003c- ldply(c_list, function(x) {\n    df \u003c- of_landings(country = x)\n    df$country  \u003c-  x\n    df\n}, .progress = 'text')\n```\n\nYou can easily compare these results\n```r\nlibrary(ggplot2)\nggplot(results, aes(year, catch, group = country, color = country)) + geom_line()\n```\n![multiple countries](https://raw.github.com/ropensci/rfisheries/master/multiple_countries.png)\n\nSimilarly you can get landings data for multiple species. As the API evolves, we'll update the package and get it to [CRAN](http://cran.r-project.org/) at some point.\n\n\n## Creative interactive charts\n\nUsing the [rCharts library](http://ramnathv.github.io/rCharts/), it's easy to create interactive plots. Here's a quick example.\n\n```r\nlibrary(rfisheries)\nlibrary(rCharts)\ncod \u003c- of_landings(species = \"COD\")\ncod$date \u003c- paste0(cod$year, \"-01\", \"-01\")\ncod_plot \u003c- mPlot(x = \"date\", y = \"catch\", type = \"Line\", data = cod)\ncod_plot$set(pointSize = 0, lineWidth = 4)\ncod_plot\n```\n[Please report any issues or bugs](https://github.com/ropensci/rfisheries/issues).\n\nLicense: MIT\n\nThis package is part of the [rOpenSci](http://ropensci.org/packages) project.\n\nTo cite package ‘rfisheries’ in publications use:\n\n```r\n  Karthik Ram, Carl Boettiger and Andrew Dyck (2013). rfisheries: R\n  interface for fisheries data. R package version 0.1.\n  http://CRAN.R-project.org/package=rfisheries\n\nA BibTeX entry for LaTeX users is\n\n  @Manual{,\n    title = {rfisheries: R interface for fisheries data},\n    author = {Karthik Ram and Carl Boettiger and Andrew Dyck},\n    year = {2013},\n    note = {R package version 0.1},\n    url = {http://CRAN.R-project.org/package=rfisheries},\n  }\n```\n[![footer](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org)","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["ecology","biodiverse","data-access","cycle","routes","climate","biology","darwincore","nomenclature","taxize"],"project_url":"https://ost.ecosyste.ms/api/v1/projects/1079","html_url":"https://ost.ecosyste.ms/projects/1079"}