{"id":13712404,"url":"https://junqueiragaabi.github.io/ButterflyColors/","last_synced_at":"2025-05-06T22:31:11.674Z","repository":{"id":65028092,"uuid":"580934796","full_name":"junqueiragaabi/ButterflyColors","owner":"junqueiragaabi","description":"Color palette for data visualization based on butterfly species","archived":false,"fork":false,"pushed_at":"2022-12-28T15:46:42.000Z","size":19808,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T23:32:09.230Z","etag":null,"topics":["butterfly","color-palette","insects","plot","r","rstats"],"latest_commit_sha":null,"homepage":"https://junqueiragaabi.github.io/ButterflyColors/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junqueiragaabi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-21T20:41:35.000Z","updated_at":"2024-05-20T09:13:15.000Z","dependencies_parsed_at":"2023-01-01T05:22:03.115Z","dependency_job_id":null,"html_url":"https://github.com/junqueiragaabi/ButterflyColors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqueiragaabi%2FButterflyColors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqueiragaabi%2FButterflyColors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqueiragaabi%2FButterflyColors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junqueiragaabi%2FButterflyColors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junqueiragaabi","download_url":"https://codeload.github.com/junqueiragaabi/ButterflyColors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252778985,"owners_count":21802860,"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"}},"keywords":["butterfly","color-palette","insects","plot","r","rstats"],"created_at":"2024-08-02T23:01:18.094Z","updated_at":"2025-05-06T22:31:09.788Z","avatar_url":"https://github.com/junqueiragaabi.png","language":"R","funding_links":[],"categories":["Themes and aesthetics"],"sub_categories":[],"readme":"\n# **ButterflyColors** \u003cimg src=\"man/figures/hexologo_butterfly.png\" align=\"right\" width=\"25%\" /\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![License](https://img.shields.io/badge/license-GPL-blueviolet.svg?style=flat)](https://github.com/junqueiragaabi/ButterflyColors/blob/master/LICENSE.md)\n[![Twitter Follow](https://img.shields.io/twitter/follow/junqueiragaabi?style=social)](https://twitter.com/junqueiragaabi)\n\n\u003c!-- badges: end --\u003e\n\n## Overview\n\nThe ButterflyColors package contains color palette for plotting in R based on butterfly species.\nFor species with sexual dimorphisms, we used male colors.\n\n## Installation\n\nYou can install the development version of ButterflyColors from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"junqueiragaabi/ButterflyColors\")\nlibrary(ButterflyColors)\n```\n## The color scales\n\nButterfly palettes were extected from photographs using Adobe Color. We defined the five dominant colors in each butterfly species.\nAll photographs used were taken by Sofia Schirmer from biological collections of Brazilian universities.\n\n\n## Usage\n\nThe color palettes per species are organized in a list called butterfly_species:\n\n``` r\nlibrary(ButterflyColors)\nnames(butterfly_species)\n```\n    ## [1] \"philaethria_dido\"                 \"anteos_menippe\"                   \"fountainea_ryphea\"\n    ## [4] \"lycorea_hallia\"                   \"morpho_helenor\"                  \"archaeoprepona_demophon_thalpius\"\n    ## [7] \"brassolis_sophorae\"               \"historis_acheronta\"               \"stalachtis_phlegia_susanna\"\n    ## [10] \"battus_polydamas\"                 \"anteos_clorinde\"                  \"chorinea_licursis\"\n    ## [13] \"danaus_eresimus\"                  \"smyrna_blomfidiana\"               \"astraptes_fulgerator\"\n    ## [16] \"hamadryas_feronia\"                \"pseudolycaena_marsyas\"            \"catagramma_pygas\"\n    ## [19] \"heliconius_sara_apseudes\"         \"synargis_calyce\"                  \"hamadryas_feronia\"\n    ## [22] \"heliconius_erato_phyllis\"         \"hylephila_phyleus\"                \"danaus_erippus\"\n    ## [25] \"danaus_gilippus\"                  \"junonia_evarete\"                  \"hemiargus_hanno\"\n    ## [28] \"dynamine_postverta\"               \"parides_zacynthus_polymetus\"      \"marpesia_petreus\"\n\nand the function `butterfly_palettes` returns a vector with the color palette (hex color codes) of a butterfly.\n\n``` r\nbutterfly_palettes(specie = \"parides_zacynthus_polymetus\")\n\n```\n    ## [1] \"#37738D\" \"#9B8170\" \"#D98B79\" \"#BF6860\" \"#292325\"\n\nA few examples...\n\n```r\nlibrary(ggplot2)\n\nggplot(iris, aes(x = Sepal.Length, y = Petal.Length, colour = Species)) +\n  geom_point(size = 3) +\n  scale_colour_manual(values = butterfly_palettes(\"parides_zacynthus_polymetus\"))\n```\n\n\u003cimg src=\"man/figures/parides_zacynthus_polymetus_plot.png\" width=\"672\"/\u003e\n\n### *Fountainea ryphea*\n\n\u003cimg src=\"man/figures/fountainea_example.png\" width=\"672\"/\u003e\n\n### *Archaeoprepona demophon thalpius*\n\n\u003cimg src=\"man/figures/archaeopreprona_example.png\" width=\"672\"/\u003e\n\n### *Anteos menippe*\n\n\u003cimg src=\"man/figures/anteos_example.png\" width=\"672\"/\u003e\n\n## Contribute\n\nCan't find the species you want?\n\nIf you would like to contribute to this package, please contact [Gabriela Junqueira](https://twitter.com/junqueiragaabi)\nor [Sofia Schirmer](https://twitter.com/xixirmer) on Twitter or submit a pull request\n\n## Credits\n\nThe structure of this package was inspired by the [`feathers`](https://github.com/shandiya/feathers) and [`fishualize`](https://github.com/nschiett/fishualize) packages.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/junqueiragaabi.github.io%2FButterflyColors%2F","html_url":"https://awesome.ecosyste.ms/projects/junqueiragaabi.github.io%2FButterflyColors%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/junqueiragaabi.github.io%2FButterflyColors%2F/lists"}