charisma: An R package to perform reproducible color characterization of digital images for biological studies

preprint OA: closed CC-BY-NC-4.0
📄 Open PDF Full text JSON View at publisher

Abstract

1. Advances in digital imaging and software tools have provided increasingly accessible datasets and methods for analyzing color evolution. Despite the variety of computational packages available, most rely on color classification before running analyses. Previous methods to characterize color limit the ability to analyze large-scale image databases and are not always representative of biologically relevant color classes, which decrease the accuracy of downstream analyses. 2. Here, we present charisma, an R package designed to characterize the distribution of distinct color classes in images suitable for large-scale studies of biological organisms. Here, we demonstrate the utility of our package through an analysis of color evolution in a sample of diverse and charismatic birds, tanagers, in the subfamily Thraupinae. 3. We show that charisma can quickly and accurately classify every pixel in an image and validate these results using pre-identified, canonical color swatches. We find that charisma color classifications are consistent with those made by color-pattern experts in the field. Applying charisma to tanager color evolution, we find that charisma outputs seamlessly integrate with downstream evolutionary analyses. 4. Our results demonstrate that using charisma to manually curate and characterize colors in images provides a standardized, reliable, and reproducible framework for high-throughput color classification.
Full text 67,974 characters · extracted from preprint-html · click to expand
charisma: An R package to perform reproducible color characterization of digital images for biological studies | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results charisma: An R package to perform reproducible color characterization of digital images for biological studies View ORCID Profile Shawn T. Schwartz , View ORCID Profile Whitney L.E. Tsai , View ORCID Profile Elizabeth A. Karan , View ORCID Profile Mark S. Juhn , View ORCID Profile Allison J. Shultz , View ORCID Profile John E. McCormack , View ORCID Profile Thomas B. Smith , View ORCID Profile Michael E. Alfaro doi: https://doi.org/10.1101/2025.11.25.690362 Shawn T. Schwartz 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA 2 Department of Psychology, Stanford University , CA, USA 3 Wu Tsai Neurosciences Institute, Stanford University , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Shawn T. Schwartz For correspondence: stschwartz{at}stanford.edu wtsai{at}nhm.org Whitney L.E. Tsai 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA 4 Moore Laboratory of Zoology, Occidental College , CA, USA 5 Ornithology Department, Natural History Museum of Los Angeles County , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Whitney L.E. Tsai For correspondence: stschwartz{at}stanford.edu wtsai{at}nhm.org Elizabeth A. Karan 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Elizabeth A. Karan Mark S. Juhn 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Mark S. Juhn Allison J. Shultz 5 Ornithology Department, Natural History Museum of Los Angeles County , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Allison J. Shultz John E. McCormack 4 Moore Laboratory of Zoology, Occidental College , CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for John E. McCormack Thomas B. Smith 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA 6 Institute of Environment and Sustainability, University of California , Los Angeles, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Thomas B. Smith Michael E. Alfaro 1 Department of Ecology and Evolutionary Biology, University of California , Los Angeles, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Michael E. Alfaro Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Advances in digital imaging and software tools have provided increasingly accessible datasets and methods for analyzing color evolution. Despite the variety of computational packages available, most rely on color classification before running analyses. Previous methods to characterize color limit the ability to analyze large-scale image databases and are not always representative of biologically relevant color classes, which decrease the accuracy of downstream analyses. Here, we present charisma, an R package designed to characterize the distribution of distinct color classes in images suitable for large-scale studies of biological organisms. Here, we demonstrate the utility of our package through an analysis of color evolution in a sample of diverse and charismatic birds, tanagers, in the subfamily Thraupinae. We show that charisma can quickly and accurately classify every pixel in an image and validate these results using pre-identified, canonical color swatches. We find that charisma color classifications are consistent with those made by color-pattern experts in the field. Applying charisma to tanager color evolution, we find that charisma outputs seamlessly integrate with downstream evolutionary analyses. Our results demonstrate that using charisma to manually curate and characterize colors in images provides a standardized, reliable, and reproducible framework for high-throughput color classification. Anonymized Data/Code for Peer Review Analytic data/code for this manuscript can be found on the following Open Science Frame-work repo: https://osf.io/cqg59/overview?view_only=29c9786a338e48618fabbab2883937cc charisma package GitHub repo: https://anonymous.4open.science/r/charisma-C87E/ 1 Introduction For well over a century, biologists have documented and been intrigued by the charismatic coloration and patterning of earths organisms ( Darwin, 1981 ; Mayr et al., 1963 ; Santangeli et al., 2023 ). Animal colors and patterns have been shown to have ecologically important functions such as intra-and inter-specific communication in the form of sexual or social signaling, which includes crypsis, advertisement, or mimicry ( Cooney et al., 2019 ; Feller et al., 2017 ; Håstad et al., 2005 ; Irwin, 1994 ; Rabosky et al., 2016 ). The evolution of conspicuous coloration and patterning has historically been studied using genetic and observational approaches ( Andersson and Amundsen, 1997 ; Barlow et al., 2018 ; Ehrlich et al., 1977 ; McMillan et al., 1999 ; Neudecker, 1989 ; Stoddard et al., 2020 ). However, innovations in digital imaging and novel software tools have provided increasingly accessible datasets and reproducible methods for quantitative ecological and evolutionary investigations of color and pattern ( Chan et al., 2019 ; Endler, 2012 ; Endler et al., 2018 ; Hemingson et al., 2024 ; Maia et al., 2013 ; Valvo et al., 2020 ; Van Belleghem et al., 2018 ; van den Berg et al., 2020 ; Weller and Westneat, 2019 ). To date, these approaches have advanced the field’s understanding of the evolution of sexual dichromatism (i.e., males and females differing in color) and the factors influencing why some species have more cryptic, conspicuous, or diverse colors ( Cooney et al., 2022 ; Dale et al., 2015 ; Shultz and Burns, 2013 , 2017 ; Yu et al., 2024 ). Despite this progress, eco-evolutionary explanations for why species display specific colors over others (e.g., blue vs. green) have been lacking. The ability to characterize discrete human-visible color classes in organisms is important to understand the drivers of color evolution and specifically address questions like: Does habitat influence the colors birds evolve? Which colors provide crypsis or conspicuousness? Do specific colors play a role in sexual or social signaling? In birds, color-producing mechanisms are well known for each color; thus, knowing the color classes present in a species can also inform how these mechanisms evolve ( Hill and McGraw, 2006 ; Porzio and Mota, 2025 ). Given the multidimensional and continuous nature of color and color space, it is both conceptually and technically challenging to carve up the color spectrum into discrete bins, limiting the number of studies and software utilities that use color classification ( Table 1 ; Delhey et al., 2023 ; Ibáñez-Álamo et al., 2025 ; Nicholson et al., 2007 ; Senior et al., 2022 ). Additionally, many color analysis packages require users to input the number of color classes (k) a priori to compute various downstream color metrics, which means images must first undergo color profiling such that k meaningfully captures the specific dominant color classes of each organism ( Table 1 ; Maia et al., 2019 ; Van Belleghem et al., 2018 ; Weller and Westneat, 2019 ). Previous analyses have been limited to small clades with low color variation across species ( Alfaro et al., 2019 ; Hemingson et al., 2019 ; Weller and Westneat, 2019 ). Large-scale color class analyses in birds have used bespoke methods for color classification to analyze bird illustrations ( Delhey et al., 2023 ; Senior et al., 2022 ). While this allows for broad analyses of color evolution in birds, illustrators exhibit artistic license in their renderings. Color analysis based on images of organisms can reduce these inherent biases. These small datasets and custom methods limit the reproducibility and breadth of organisms that can be studied using this approach. View this table: View inline View popup Download powerpoint Table 1. Comparison of existing color classification methods. To fill this gap, we introduce charisma, an R package designed to streamline the process of characterizing discrete color classes in digital images that can be used in studies of organisms across the tree of life. We provide a flexible and reproducible framework to efficiently determine the presence or absence of key human-visible color classes in images. The charisma package is suitable for large-scale studies of color and color pattern evolution and can be seamlessly integrated into popular downstream quantitative analysis workflows in R (e.g., geiger, patternize, pavo, etc.). We first describe the charisma pipeline and then demonstrate the efficacy of our software by ( i ) validating charisma’s color classification performance using images comprised of predetermined color classes, ( ii ) applying charisma to a small set of standardized, museum specimen images of Tangara species and allies in the subfamily Thraupinae and comparing the color classification performance of charisma to those made by an expert, and ( iii ) demonstrating how color classification labels produced by charisma can be leveraged within a trait-based macroevolutionary analysis of color evolution. 2 Materials and Methods 2.1 The charisma pipeline The primary function of charisma is to characterize the distribution of human-visible color classes that are present in an image ( Figure 1 ). The charisma package was intentionally designed with efficiency and reproducibility in mind, facilitating a standardized and extensible pipeline for color classification. Segmentation of continuous color space into useful classes has previously been done and provides a means to investigate colors and color types in evolutionary biology ( Delhey et al., 2023 ; Ibáñez-Álamo et al., 2025 ; Senior et al., 2022 ). To accurately profile the distribution of colors present in an image, we divided hue, saturation, and value (HSV) color space into each of 10 human-visible color classes including all recognized primary and secondary colors (red, orange, yellow, green, blue, and purple) and black, brown, grey, and white ( Figure S1 ). We determined HSV color space as the best option for the charisma package for a variety of reasons. ( i ) HSV color space provides an intuitive space to separate human-visible color classes. Using HSV color space makes sense in the context of investigating color class and type evolution regardless of an organism’s visual perception. Incorporating an organism’s visual perception is beyond the scope of this package and requires spectrophotometric measurements or hyperspectral camera imaging and different analyses ( Garcia et al., 2015 ; Hogan and Stoddard, 2024 ; van den Berg et al., 2020 ). ( ii ) There is a simple calculation to convert between HSV and red, green, blue (RGB) color spaces, which is useful because most digital images are stored in RGB color space and color distance and complexity are easily calculated in RGB color space. In practice, this conversion can be performed directly using R’s built-in rgb2hsv() function, which returns hue, saturation, and value in normalized units that can then be scaled (e.g., hue × 360 ◦ , saturation × 100%, value × 100%) for downstream analyses in charisma. ( iii ) An alternative color space is CIELab which was defined by the International Commission on Illumination in 1976 and provides a perceptually uniform color space representative of how the human eye perceives color ( Commission Internationale de l’Éclairage (CIE), 2004 ). Download figure Open in new tab Fig. 1. Overview of the charisma pipeline. a, Original digitized specimen image, Tangara fastuosa , passed into charisma for processing. b, The recolorize algorithm (see Weller et al., 2024 ) is used to boost SNR by effectively performing a low-pass-like filter. c, Users run the automated mode to check CLUT performance and adjust the color boundaries according to the image dataset and biological questions using the CLUT editor. d, Lastly, users are prompted through the semi-automated mode to make optional, manual adjustments to further fine-tune image noise (e.g., biologically irrelevant colors) with interactive color merging and replacement operations (adapted from the recolorize R package, see above). Users receive the charisma “color profile” (right panel in c and d ), which provides a count of the number of discrete color class labels (out of the 10 shown here; k ) as well as the proportion of pixels in the image that fall into each of the 10 possible color classes. On the left, the dashed red horizontal line indicates a user-specified threshold (5% here) to perform automated rejection of low frequency color classes. In this example, the automated workflow yielded k = 4 (i.e., black, blue, green, and grey). The semi-automated mode further reduced noise to eliminate the brown and grey artifacts and correctly call orange and yellow with a 0% threshold. However, working in CIELab space is biased towards human visual perception, computationally intensive and requires information about lighting conditions, which limits its utility for large scale analyses of images taken in varying light environments or from different sources. Box 1. Recommended workflow for charisma end-users Step 1: Image dataset generation and pre-processing We highly recommend generating an image dataset by taking standardized images of organisms with the same camera, lighting conditions, and color standard (like the X-Rite ColorChecker). We understand that there are advantages to using pre-existing images for color analyses, in which case, we recommend using images from as few sources as possible and only retaining images that can reasonably be compared. For more complete guides on digital imaging for biological studies of color, see Garcia et al. (2015) ; Stevens et al. (2007) . White-balance standardized images using a grey standard. For non-standardized image datasets, more complex color calibration and image standardization is necessary ( Akkaynak et al., 2014 ; Stevens et al., 2007 ). Segment images manually or use a pre-existing segmentation toolkit like sashimi ( Schwartz and Alfaro, 2021 ) or PixelMator Pro ( https://www.apple.com/pixelmator-pro ). Step 2: Optimizing the charisma color lookup table (CLUT) Run images through the automated charisma workflow to assess the CLUT classification performance. If the image dataset is less than 50 images, run all images. If the image dataset is much larger, run a subset of the images that includes the breadth of color variation across the dataset. Assess charisma classification outputs and adjust CLUT color boundaries using the CLUT Editor, if necessary. Repeat automated charisma run and CLUT adjustments until satisfied with CLUT performance. Step 3: Finalize charisma outputs Run all images through the semi-automated charisma workflow and manually adjust images using the merge and replacement options, whenever necessary. When merging and replacing colors, think carefully about your biological system question to ensure accurate rep-of colors. We created a biologically inspired color lookup table (CLUT), which contains distinct, non-overlapping hue, saturation, and value boundaries for each color class ( Figure S1 ). To determine the boundaries for each color across the HSV color space, we iteratively developed a schema for defining non-overlapping ranges of hue, saturation, and value triplets for each of the 10 color labels. First, we divided hue into 30 degree bins corresponding to known primary, secondary, and tertiary colors (similar to Senior et al., 2022 ). We merged and adjusted bins to fit our six hue driven color classes (red, orange, yellow, green, blue, and purple). We defined black, brown, grey, and white on the basis of saturation and value. Then, we used charisma’s automated mode to adjust and fine-tune the color boundaries for our standardized, color-calibrated, research quality photos of bird museum specimens. The CLUT shipped with charisma out-of-the-box is open-source and editable (see charisma::CLUT). It can be validated using the command charisma::validate() to ensure that no color class boundaries are overlapping and that the entire color spectrum is covered. The interactive CLUT editor app, available on the documentation website ( https://charisma.shawnschwartz.com/app ), allows for simple optimization of the CLUT by adjusting color boundaries and adding or subtracting color classes. The CLUT defines color boundaries such that a given HSV triplet is classified as belonging to a color category if its hue, saturation, and value simultaneously fall within at least one of the color category’s defined range sets. Moreover, color categories can specify multiple disjunctive range sets (joined by commas), where each set defines a rectangular subregion of HSV space. Within a single range set, the pipe operator (|) signifies a union across non-contiguous intervals within a single dimension (e.g., hue ranges of 0 - 15 ◦ or 300 - 360 ◦ for red, which wraps around the hue circle). This syntax enables definition of complex, non-contiguous color category boundaries. For instance, the category “brown” perceptually occupies a non-convex region of color space; therefore, “brown” in the CLUT is defined as the union of several narrow HSV subregions spanning different value and saturation levels. Our interactive CLUT editor provides users the flexibility to define and test their own custom CLUTs (e.g., optimizing classification boundaries for different image sets including non-biological applications) for use within charisma. Before applying the CLUT-based classification in charisma, the recolorize2() function from the R package recolorize ( Weller et al., 2024 ) is used to produce a spatially ‘smoothed’ version of the input image by removing stray or noisy pixels that may negatively influence the downstream charisma color-label classification (for an example, see Figure 1 ). The recolorize package primarily accomplishes this by performing a spatial-color binning procedure using the RGB ‘histogram’ method ( Weller et al., 2024 ; Weller and Westneat, 2019 ), which bins each image pixel into a fixed number of color bins. This down-sampled representation of the dominant image colors enables faster color classification by passing each bin’s RGB triplet (i.e., the average color of all pixels assigned to each color bin) into charisma::color2label(r, g, b). The charisma::color2label(r, g, b) function tests for the union of the supplied RGB triplet within the non-overlapping HSV ranges for each color class in the CLUT and returns the matching color label from the set of 10 color classes. This approach is computationally efficient because only a fixed number of bins need to be classified (i.e., 4 bins for each of 3 channels; 4 3 = 64 cluster centers using the histogram method; cluster centers with a Euclidean distance less than a default cutoff of 20 are combined). The alternative approach classifies every single pixel within the image, which could incorrectly classify shadows or image artifacts and becomes a computationally intensive procedure as the size and resolution of the image scales. For best results, we recommend using charisma with a multi-stage approach, specifically running both automated and semi-automated workflows together to facilitate accurate color classification fine-tuned for any given set of specimens ( Figure 1 and Box 1 ). The automated mode allows users to quickly run all or a subset of images in their dataset to assess the performance of the default CLUT. If users are not satisfied with the charisma ouputs, they should iteratively use the CLUT editor app to adjust the color boundaries and check the results in automated mode. Then, users can use the semi-automated mode to manually merge colors, replace colors, and/or use a threshold cutoff to remove colors with low proportions of pixels that fall below the specified threshold. We developed a custom implementation that draws on the recolorize binning procedure with interactive prompts for color replacement and merging ( Weller et al., 2024 ), empowering users to check the color classification at each stage of the charisma pipeline in an iterative and flexible fashion. The final charisma output ( Figure 1c,d ) for each image includes the number of colors present ( k = 1…10), a table with presence and absence data for each color class, a log of all manual interventions performed, and R objects that can easily be passed through existing evolutionary analysis pipelines, like those in the R package pavo ( Maia et al., 2013 , 2019 ) or analyses of evolutionary models and rates (e.g., Harmon et al., 2008 ; Pennell et al., 2014 ; Revell, 2012 , 2024 ). Overall, charisma facilitates a highly standardized and reproducible pipeline to characterize color class data from images of organisms for downstream analyses. By carefully designing the package to handle a spectrum of fully automated to semi-automated workflows, users are equipped to adapt the precision of charisma-derived color label classifications to their particular research needs while enjoying streamlined data and image processing provenance out-of-the-box. 2.2 Validating charisma’s color classification performance We validated the performance of charisma and the accuracy of our CLUT by first testing known color datasets. We obtained color grids for each of our 10 colors from the images on the Wikipedia “Shades of [Color]” pages ( Table S1 ). These images contain grids of 9-25 color squares representative of each color, which we used as input in the automated charisma workflow (see Figure 2 ). We also tested images of beetles and fish ( Figure S3 ) using the automated mode to provide examples of images that were not used to tune the CLUT ( Alfaro et al., 2019 ; Karan et al., 2021 , 2025 ; Schwartz and Alfaro, 2021 ; Weller et al., 2024 ). View this table: View inline View popup Download powerpoint Table S1. Sources images for Wikipedia-based shades of color swatch validation. View this table: View inline View popup Download powerpoint Table S2. Performance comparison between the automated charisma classification workflow (with a 5% color-proportion threshold) and expert classification across color classes. Each column reports the total number of hits (true positives), misses (false negatives), false alarms (false positives), and correct rejections (true negatives) in the charisma dataset. The percentage of correct hits (parentheses) are calculated as the number of hits divided by the total number of color targets (hits + misses) in the expert dataset. The percentage of correct rejections (parentheses) are calculated as the number of correct rejections divided by the total number of non-targets (correct rejections + false alarms) in the expert dataset. View this table: View inline View popup Download powerpoint Table S3. Performance comparison between the automated charisma classification workflow (with a 7.5% color-proportion threshold) and expert classification across color classes. Each column reports the total number of hits (true positives), misses (false negatives), false alarms (false positives), and correct rejections (true negatives) in the charisma dataset. The percentage of correct hits (parentheses) are calculated as the number of hits divided by the total number of color targets (hits + misses) in the expert dataset. The percentage of correct rejections (parentheses) are calculated as the number of correct rejections divided by the total number of non-targets (correct rejections + false alarms) in the expert dataset. View this table: View inline View popup Download powerpoint Table S4. Performance comparison between the automated charisma classification workflow (with a 10% color-proportion threshold) and expert classification across color classes. Each column reports the total number of hits (true positives), misses (false negatives), false alarms (false positives), and correct rejections (true negatives) in the charisma dataset. The percentage of correct hits (parentheses) are calculated as the number of hits divided by the total number of color targets (hits + misses) in the expert dataset. The percentage of correct rejections (parentheses) are calculated as the number of correct rejections divided by the total number of non-targets (correct rejections + false alarms) in the expert dataset. Download figure Open in new tab Fig. 2. Validating charisma color classifications. Swatches each containing shades of one of ten color classes were obtained from Wikipedia (see Table S1 ) and were then submitted directly to the charisma automated workflow. Charisma performed well-above chance at identifying each of the ten color classes (see charisma color profile ). 2.3 Imaging bird museum specimens We then illustrate the utility of charisma for evolutionary color analyses with images of tanagers in the subfamily Thraupinae (Family Thraupidae). Tanagers in this subfamily have been well studied in terms of molecular phylogenetics and color evolution ( Burns et al., 2014 , 2016 ; Price-Waldman et al., 2020 ; Shultz and Burns, 2017 ). Previous work has found that lineages within Thraupinae have the highest evolutionary rates of plumage complexity in tanagers ( Price-Waldman et al., 2020 ). The subfamily Thraupinae also contains the notably colorful genus Tangara (and allied genera that have been split from the traditional Tangara genus), an ideal clade for testing charisma. We photographed 32 bird museum specimens at the Natural History Museum of Los Angeles County ( Table 4 ). This testing dataset consists of incomplete sampling within the subfamily and contains mostly male specimens with a few female specimens that exhibit minimal sexual dichromatism in the human visible spectrum. Specimens were photographed under consistent conditions using a Nikon D70s with Novoflex 35mm lens and Natural LightingNaturesSunlite 30-W full spectrum fluorescent bulbs. Each image included an X-Rite ColorChecker standard and we used the 18% neutral grey standard to white-balance the RAW image files in Photoshop before charisma processing ( Figure S2 ). The images were manually segmented by annotating the pixel coordinates to create precise polygonal mask contours directly around the boundary of each bird body (à la Schwartz and Alfaro, 2021 ) to remove the background. To focus our analyses on plumage coloration, we removed the bill, leg, tag, and cotton eye pixels of the specimen images prior to characterizing color metrics using charisma. 2.4 Bird coloration datasets To classify color in our bird museum specimen images, we ran both the fully automated charisma workflow followed by the semi-automated workflow to manually reduce pixel color noise ( Figure 1 ). For the fully automated datasets, we tested threshold values of 5%, 7.5%, and 10%, where any color with a proportion of pixels lower than these threshold values would be removed from the color classification (see Figure 3 ). We implemented these thresholds to automatically remove colors that may have been misclassified due to image artifacts like shadows or feather overlap. For the semi-automated dataset, we merged and/or replaced colors to further refine color clusters for more accurate downstream color classification. To ground-truth our charisma classifications, we extracted color classifications for our species from a dataset of color classifications for all members of the Thraupidae (true tanager) family determined by an expert in tanager coloration (A.J.S.). charisma color classification performance was evaluated by comparing the classifications derived from the automated and semi-automated color datasets against our expert dataset using a binary contingency table ( Powers, 2020 ). We used our expert color dataset as the true colors of the birds and classified each charisma-identified color classification as a true positive (i.e., ‘hit’), false negative (i.e., ‘miss’), false positive (i.e., ‘false alarm’), or true negative (i.e., ‘correct rejection’). Download figure Open in new tab Fig. 3. Evolutionary rates of change for each color and evolutionary model as classified in our expert dataset (A.J.S.) – top-dashed – versus charisma-based classifications – Semi-automated: hybrid classification using a threshold = 0% with manual adjustments (W.L.E.T.); the three remaining classifications were derived from the automated charisma workflow with no manual editing, using increasingly conservative color-proportion thresholds from top-to-bottom. Red ⊗ indicates the color was not called by the charisma analysis; asterisks (*) indicate best fit model for each color class (rates and model selection can be found in Table 2 ). Each plot shows the relative rate of evolutionary change proportional to the highest rate on each plot. Each column represents the following rates: left, Equal Rates (ER), middle, All Rates Different (ARD) gain, right, ARD loss. Note that for the automated dataset with threshold 7.5% (j, k, l), the ER and ARD model selection was inconclusive with an AICc weight of 0.5 for each model. View this table: View inline View popup Download powerpoint Table 2. Rates of color evolution and ancestral state reconstruction model selection for all datasets. 2.5 Evolutionary analyses We used our datasets and a previously published tanager phylogeny ( Burns et al., 2014 ) to explore variation in the rates of color evolution and reconstruct ancestral color states. Additionally, because the color-producing mechanisms and structures are well known in birds ( Hill, 2006 ; Mason and Bowie, 2020 ; Porzio and Mota, 2025 ; Stoddard and Osorio, 2019 ; Stoddard and Prum, 2011 ), we also estimated rates and reconstructed ancestral states for color-producing mechanisms. We transformed our color data by grouping discrete colors by avian color-producing mechanism. We designated melanin-based colors as black, brown, and grey, carotenoid-based colors as red, orange, and yellow, and structural colors (produced by feather nanostructure, including those with pigment overlays) as green, blue, and purple ( Hill, 2006 ). For purposes of this study, we have oversimplified the color producing mechanisms for green (produced by carotenoids + nanostructure), and blue and purple (both produced by melanin + nanostructure). We removed white from the color mechanism analysis because it has two potential mechanisms: a lack of pigment or feather nanostructure. For each color and mechanism, we used the fitDiscrete() function in the R package geiger to test the fit of two models of evolution: the equal rates (ER) model, which assumes the rates of gains and losses of a color are equal, and the all rates different (ARD) model, which assumes gains and losses of a color occur at different rates. We compared transition rates for every color in our datasets to determine the potential effects of automated, expert, and semi-automated classifications on evolutionary analyses. We used the sample-size corrected Akaike Information Criterion (AICc) to select the best model for each color and mechanism for our semi-automated dataset. We then leveraged the best-fitting model to reconstruct ancestral states for our semi-automated dataset. Using the R package phytools, we estimated maximum-likelihood probabilities for each color and mapped them on the tanager phylogeny ( Burnham et al., 1998 ; Burns et al., 2014 ; Huelsenbeck et al., 2003 ; Paradis et al., 2004 ; Revell, 2012 ). 3 Results 3.1 Validation of charisma’s color classification performance Figure 2 demonstrates charisma’s ability to characterize the colors in an image. Here, we find that the majority of charisma color classifications identify the pre-assigned color class of the input grid. The highest variation in color classifications was present in the red and orange grids with four different colors being called for each. Brown had the second highest proportion of calls for both red and orange grids, which highlights the general difficulty of delineating between the boundaries of these three colors in HSV color space. We demonstrate that diverse sets of organisms can be run using charisma, but we warn users that image lighting and quality can change the designation of the color class depending on the assigned HSV coordinates (see Figure S3 for examples of beetles and fish images). We stress that users should refer to Box 1 for our recommended workflow. 3.2 Comparison of color datasets We found that the semi-automated color dataset outperformed automated color datasets when compared to the expert color dataset ( Table 5 and Tables S2, S3, S4 ). Black was well-classified in all datasets and brown and grey had high false alarm rates in automated datasets ( Table 5 and Tables S2, S3, S4 ). The bases and tips of bird feathers, especially contour feathers, are often different colors, with the base generally being black, brown, grey, or white and the tip containing more highly pigmented or structural coloration ( Price-Waldman et al., 2025 ; Terrill and Shultz, 2023 ). In bird museum specimens, overlapping feathers can be misaligned to create grey or brown patches where the base of feathers show ( Figure 1c ). These color artifacts may contribute to the over-representation of brown and grey in the automated color datasets. For our analyses, these patches represented unwanted image artifacts, however, depending on the goal of the user, the classification of such subtle variation could be a benefit. Red and orange had high miss rates in the automated datasets ( Table 5 and Tables S2, S3, S4 ). Red ( n = 2) and orange ( n = 1) are rare in our dataset, but when present, they are represented by very small patches. As expected, the automated thresholding procedure removed colors with a small proportion of pixels, making underrepresented color categories difficult to classify using the automated workflow. Together, the small sample size and small patch size of red and orange in these birds contribute to the high miss rates in the automated datasets. The classifications derived from the semi-automated charisma workflow show an almost identical color profile to the expert color dataset as evidenced by the near-100% hit and correct rejection rate ( Table 5 ). As such, signal-to-noise ratio (SNR) can be further improved by running the semi-automated mode in charisma to adjust underrepresented color patches (to reduce misses) and manually correct color patches sitting at the boundary of the CLUT color class boundaries (to reduce false alarm identifications). 3.3 Evolutionary analyses To understand how classifying color in different ways (i.e., automated vs. semi-automated datasets) impacts evolutionary rates analyses, we compared evolutionary rates estimated for the expert, semi-automated, and automated datasets ( Figure 3 and Table 2 ). We found that the automated datasets elevated the rate of evolution of grey across all models providing evidence that uncorrected color artifacts in bird museum specimens, likely due to misaligned feathers, impact downstream evolutionary analyses. We also found slower evolutionary rates for blue and green in the automated datasets, which may be due to the higher miss rates of charisma-identified blue and green color classes ( Table 5 and Tables S2, S3, S4 ). As predicted, we see high congruence in evolutionary rates between our expert and semi-automated color datasets. Given the similarity between our expert and semi-automated color datasets, we present the results of our evolutionary analyses using the best-performing charisma classification (i.e., the semi-automated color dataset). We note that these results and interpretations are based on incomplete sampling of a subfamily of tanagers and they are presented as an example of the utility of charisma for these types of evolutionary analyses. Additionally, we have categorized highly complicated color-producing mechanisms into two simple mechanisms. Any biological interpretations of the data should be taken with caution. We tested two models of evolution on discrete color classes and colors grouped by color-producing mechanism (see Figure 4 , Table 2 , and Table 3 ). We excluded purple and the melanin mechanism from our analyses because purple was not present in any species and melanin was ubiquitous across all species. When comparing the evolution of the melanin color using the ER model, brown showed an elevated rate compared to all other color classes, and black showed the slowest rate ( Figure 3 ). Melanin molecules are structurally robust and are often deposited in the primary wing and tail feathers of birds to increase durability and resist abrasion in these high-use feathers ( Bonser, 1995 ). This aligns with our finding that melanin coloration is highly conserved and indicates the need for structural integrity in bird feathers. Download figure Open in new tab Fig. 4. Evolutionary rates for each color-producing mechanism and evolutionary model for the semiautomated dataset: a, Equal Rates (ER) rate, b, All Rates Different (ARD) gain rate, c, ARD loss rate. Asterisks (*) indicate best fit model for each color-producing mechanism (rates and model selection can be found in Table 3 ). View this table: View inline View popup Download powerpoint Table 3. Rates of color-producing mechanism evolution and ancestral state reconstruction model selection for the semi-automated dataset. View this table: View inline View popup Download powerpoint Table 4. Bird museum specimens. View this table: View inline View popup Download powerpoint Table 5. Performance comparison between the semi-automated charisma classification workflow (with manual adjustments) and expert classification across color classes. Each column reports the total number of hits (true positives), misses (false negatives), false alarms (false positives), and correct rejections (true negatives) in the charisma dataset. The percentage of correct hits (parentheses) are calculated as the number of hits divided by the total number of color targets (hits + misses) in the expert dataset. The percentage of correct rejections (parentheses) are calculated as the number of correct rejections divided by the total number of non-targets (correct rejections + false alarms) in the expert dataset. For color-producing mechanisms, carotenoid coloration showed a higher rate of evolution than structural coloration ( Figure 4 ). Pigment-based color is more widespread across the avian tree of life than structural color ( Hill and McGraw, 2006 ). However, across our tanager dataset, structural colors (green and blue), are present in more species than carotenoid colors (red, orange, and yellow), which may be contributing to the faster rate of evolution for carotenoid coloration. The structural color, blue, best fit the ARD model of evolution and showed elevated gain and loss rates compared to all other colors ( Figure 3 and Table 3 ). Where structural color is present, there is evidence that color diversity accumulates faster than pigment-based color because of the modularity of layering pigments and structure ( Eliason et al., 2015 ; Maia et al., 2016 ). These subtle structural changes at the nanometer level may result in the production of significantly different colors allowing for rapid evolution and accumulation of color diversity. Lastly, we found the ER model of evolution to be the best-fitting model for every color and color-producing mechanism except for blue and orange ( Table 2 ). Using the best-fitting model for each color and mechanism, we reconstructed ancestral states and mapped them across the tanager phylogeny ( Figure 5 ). We found that most ancestral nodes had black, brown, yellow, green, and blue color states, which were also the most common colors in our dataset. Black, white, brown, and grey have been shown to be the most common colors across the bird tree of life ( Delhey et al., 2023 ) and differences in our findings are likely due to the uniquely colorful nature of birds in the subfamily Thraupinae. The ancestral state reconstructions demonstrate that rates of evolution are largely driven by losses of colors across internal branches of the tree. Orange fit the ARD model best with a slightly elevated rate of gain of orange than loss ( Figure 3 ). However, orange is only present in one species in our dataset and this result is driven mainly by the uncertainty of the presence of orange at the root of the phylogeny (see Figures 3 and 5 ). Download figure Open in new tab Fig. 5. charisma color classifications mapped on the tanager phylogeny. For each species, colored dots represent the colors present in the image. Color wheels at each node indicate estimated colors with greater than or equal to 50% maximum likelihood probability. Internal branches are marked with gains or losses of colors. Species order (top to bottom): Chalcothraupis ruficervix, Stilpnia heinei, S. cyanoptera, S. larvata, S. preciosa, S. cayana, S. vitriolina, Poecilostreptus palmeri, Ixothraupis guttata, I. xanthogastra, I. punctata, I. rufigula, Tangara dowii, T. nigroviridis, T. vassorii, T. gyrola, T. parzudakii, T. florida, T. arthus, T. johannae, T. schrankii, T. xanthocephala, T. desmaresti, T. cyanoventris, T. cyanocephala, T. fastuosa, T. seledon, T. i1n7ornata, T. mexicana, T. velia, T. chilensis, T. labradorides . 4 Discussion Here, we present charisma, an R package we developed to provide a standardized, reproducible, and flexible framework for characterizing color classes from digital images. To demonstrate its utility, we used standardized images of bird museum specimens and found that a hybrid approach using both the automated and semi-automated workflows provided the most accurate color profiling. Artifacts from misaligned feathers in our bird museum specimen image dataset led to over representation of brown and grey in the automated charisma-derived color classification. While these artifacts might not generalize to all image datasets, we recommend using charisma in two-stages: first, use the automated mode to check and optimize the CLUT classification performance; then, use the semi-automated mode to adjust the outputs using charisma’s built-in utilities for classification clean-up. Overall, charisma is built with a fully open source design philosophy where flexibility and customization are both welcomed and encouraged. One example is the built-in functionality to adjust the default CLUT based on user needs and their specific image dataset using the CLUT editor app. Cases where this might be most useful are when fine-tuning is needed for standardized datasets of other organisms, like J.E. Randall’s images of fish ( http://pbs.bishopmuseum.org/images/JER/ ), or for extant datasets comprised of non-standardized images, like those culled from iNaturalist ( Matheson, 2014 ; https://www.inaturalist.org ) or eBird ( Sullivan et al., 2009 ). We note that image quality and variation can drastically impact downstream analyses and considering them is critical for accurate analyses of color evolution. We warn users against blindly using the default CLUT without carefully checking color classifications and refer users to our use recommendations in Box 1 . Lastly, charisma enables seamless transition to downstream evolutionary analyses, which we show-cased in a vignette on tanagers in the subfamily Thraupinae. More broadly, we present charisma as a solution for high-throughput organismal color analyses with utility that is not restricted to evolutionary biology applications. Supplementary Information Download figure Open in new tab Fig. S1. Full HSV color space (a) and color slices for each color class (b) as visualized using the CLUT editor. Download figure Open in new tab Fig. S2. Comparison of original image (a), white-balanced image (b), and white-balanced and segmented image Download figure Open in new tab Fig. S3. charisma color classifications for fish ( Alfaro et al., 2019 ; Karan et al., 2021 , 2025 ; Schwartz and Alfaro, 2021 ) and beetles ( Weller et al., 2024 ) Acknowledgments We extend our gratitude to current and former members of the Alfaro Lab, Center for Tropical Research, and Moore Laboratory of Zoology whose feedback greatly influenced the development of charisma. Specifically, we thank Mackenzie Perillo and Kevin Wang for their help in preparing the testing and validating datasets for charisma, Gregory Grether for helpful comments on earlier versions of this manuscript, and Hannah Weller for insightful and inspiring conversations about color pattern evolution, computational methods for classifying color, and the development of both the colordistance and recolorize R packages, of which charisma was inspired by and builds upon. Specimens were provided by the Natural History Museum of Los Angeles County. Funder Information Declared National Science Foundation, Graduate Research Fellowship , DGE-2034835 Footnotes Funding: S.T.S. and W.L.E.T. were supported by the University of California, Los Angeles (UCLA), Department of Ecology and Evolutionary Biology (EEB). W.L.E.T. was additionally supported by the UCLA, Dissertation Year Fellowship; UCLA, EEB, Lida Scott Brown Fellowship; the National Science Foundation, Graduate Research Fellowship [DGE-2034835]; and the National Science Foun-dation, Postdoctoral Research Fellowship in Biology [DBI-2410072]. The funders had no role in this project’s development, design, and delivery. Authors’ Contributions: S.T.S.: Conceptualization, Data Curation, Formal Analysis, Investigation, Methodology, Project Administration, Resources, Software, Supervision, Validation, Visualization, Writing, - Original Draft Preparation, Writing - Review & Editing W.L.E.T.: Conceptualization, Data Curation, Formal Analysis, Investigation, Methodology, Project Administration, Resources, Supervision, Validation, Visualization, Writing - Original Draft Preparation, Writing - Review & Editing E.A.K.: Conceptualization, Methodology, Writing - Review & Editing M.S.J.: Conceptualization, Methodology, Writing - Review & Editing A.J.S.: Methodology, Resources, Writing - Review & Editing J.E.M.: Resources, Writing - Review & Editing T.B.S.: Methodology, Writing - Review & Editing M.E.A.: Conceptualization, Methodology, Writing - Review & Editing Competing Interests: We declare that there are no conflicts of interest with respect to the authorship or publication of this article. New figures and updated manuscript prose. https://github.com/shawntz/charisma https://charisma.shawnschwartz.com https://cran.r-project.org/package=charisma https://osf.io/cqg59 References ↵ Akkaynak , D. , Treibitz , T. , Xiao , B. , Gürkan , U. A. , Allen , J. J. , Demirci , U. , and Hanlon , R. T . ( 2014 ). Use of commercial off-the-shelf digital cameras for scientific data acquisition and scene-specific color calibration . Journal of the Optical Society of America A , 31 ( 2 ): 312 – 321 . OpenUrl ↵ Alfaro , M. E. , Karan , E. A. , Schwartz , S. T. , and Shultz , A. J . ( 2019 ). The evolution of color pattern in butterflyfishes (chaetodontidae) . Integrative and comparative biology , 59 ( 3 ): 604 – 615 . OpenUrl PubMed ↵ Andersson , S. and Amundsen , T . ( 1997 ). Ultraviolet colour vision and ornamentation in bluethroats . Proceedings of the Royal Society of London. Series B: Biological Sciences , 264 ( 1388 ): 1587 – 1591 . OpenUrl CrossRef Web of Science ↵ Barlow , A. , Cahill , J. A. , Hartmann , S. , Theunert , C. , Xenikoudakis , G. , Fortes , G. G. , Paijmans , J. L. , Rabeder , G. , Frischauf , C. , Grandal-dAnglade , A. , et al. ( 2018 ). Partial genomic survival of cave bears in living brown bears . Nature ecology & evolution , 2 ( 10 ): 1563 – 1570 . OpenUrl PubMed ↵ Bonser , R. H . ( 1995 ). Melanin and the abrasion resistance of feathers . The Condor , 97 ( 2 ): 590 – 591 . OpenUrl ↵ Burnham , K. P. , Anderson , D. R. , Burnham , K. P. , and Anderson , D. R . ( 1998 ). Practical use of the information-theoretic approach . Springer . ↵ Burns , K. J. , Shultz , A. J. , Title , P. O. , Mason , N. A. , Barker , F. K. , Klicka , J. , Lanyon , S. M. , and Lovette , I. J . ( 2014 ). Phylogenetics and diversification of tanagers (passeriformes: Thraupidae), the largest radiation of neotropical songbirds . Molecular Phylogenetics and Evolution , 75 : 41 – 77 . OpenUrl CrossRef PubMed ↵ Burns , K. J. , Unitt , P. , and Mason , N. A . ( 2016 ). A genus-level classification of the family thraup-idae (class aves: Order passeriformes) . Zootaxa , 4088 ( 3 ): 329 – 354 . OpenUrl PubMed ↵ Chan , I. Z. , Stevens , M. , and Todd , P. A . ( 2019 ). Patgeom: a software package for the analysis of animal patterns . Methods in Ecology and Evolution , 10 ( 4 ): 591 – 600 . OpenUrl ↵ Commission Internationale de l’Éclairage (CIE) ( 2004 ). Colorimetry. CIE Publication 15:2004, CIE Central Bureau, Vienna, Austria . ↵ Cooney , C. R. , He , Y. , Varley , Z. K. , Nouri , L. O. , Moody , C. J. , Jardine , M. D. , Liker , A. , Székely , T. , and Thomas , G. H . ( 2022 ). Latitudinal gradients in avian colourfulness . Nature Ecology & Evolution , 6 ( 5 ): 622 – 629 . OpenUrl PubMed ↵ Cooney , C. R. , Varley , Z. K. , Nouri , L. O. , Moody , C. J. , Jardine , M. D. , and Thomas , G. H . ( 2019 ). Sexual selection predicts the rate and direction of colour divergence in a large avian radiation . Nature communications , 10 ( 1 ): 1 – 9 . OpenUrl PubMed ↵ Dale , J. , Dey , C. J. , Delhey , K. , Kempenaers , B. , and Valcu , M . ( 2015 ). The effects of life history and sexual selection on male and female plumage colouration . Nature , 527 ( 7578 ): 367 – 370 . OpenUrl CrossRef PubMed ↵ Darwin , C. ( 1981 ). The descent of man, and selections in relation to sex . ↵ Delhey , K. , Valcu , M. , Muck , C. , Dale , J. , and Kempenaers , B . ( 2023 ). Evolutionary pre-dictors of the specific colors of birds . Proceedings of the National Academy of Sciences , 120 ( 34 ): e2217692120 . OpenUrl CrossRef PubMed ↵ Ehrlich , P. , Talbot , F. , Russell , B. , and Anderson , G . ( 1977 ). The behaviour of chaetodontid fishes with special reference to lorenz’poster colouration hypothesis . Journal of Zoology , 183 ( 2 ): 213 – 228 . OpenUrl Web of Science ↵ Eliason , C. M. , Maia , R. , and Shawkey , M. D . ( 2015 ). Modular color evolution facilitated by a complex nanostructure in birds . Evolution , 69 ( 2 ): 357 – 367 . OpenUrl CrossRef PubMed ↵ Endler , J. A . ( 2012 ). A framework for analysing colour pattern geometry: adjacent colours . Bio-logical Journal of the Linnean Society , 107 ( 2 ): 233 – 253 . OpenUrl CrossRef Web of Science ↵ Endler , J. A. , Cole , G. L. , and Kranz , A. M . ( 2018 ). Boundary strength analysis: Combining colour pattern geometry and coloured patch visual properties for use in predicting behaviour and fitness . Methods in Ecology and Evolution , 9 ( 12 ): 2334 – 2348 . OpenUrl ↵ Feller , K. D. , Jordan , T. M. , Wilby , D. , and Roberts , N. W . ( 2017 ). Selection of the intrinsic polarization properties of animal optical materials creates enhanced structural reflectivity and camouflage . Philosophical Transactions of the Royal Society B: Biological Sciences , 372 ( 1724 ): 20160336 . OpenUrl CrossRef PubMed ↵ Garcia , J. E. , Girard , M. B. , Kasumovic , M. , Petersen , P. , Wilksch , P. A. , and Dyer , A. G . ( 2015 ). Differentiating biological colours with few and many sensors: spectral reconstruction with rgb and hyperspectral cameras . PLoS One , 10 ( 5 ): e0125817 . OpenUrl CrossRef PubMed ↵ Harmon , L. J. , Weir , J. T. , Brock , C. D. , Glor , R. E. , and Challenger , W. ( 2008 ). Geiger: investigating evolutionary radiations . Bioinformatics , 24 ( 1 ): 129 – 131 . OpenUrl CrossRef PubMed Web of Science ↵ Håstad , O. , Victorsson , J. , and Ödeen , A. ( 2005 ). Differences in color vision make passerines less conspicuous in the eyes of their predators . Proceedings of the National Academy of Sciences , 102 ( 18 ): 6391 – 6394 . OpenUrl Abstract / FREE Full Text ↵ Hemingson , C. R. , Cowman , P. F. , and Bellwood , D. R. ( 2024 ). Analysing biological colour patterns from digital images: An introduction to the current toolbox . Ecology and Evolution , 14(3):e11045. ↵ Hemingson , C. R. , Cowman , P. F. , Hodge , J. R. , and Bellwood , D. R. ( 2019 ). Colour pattern divergence in reef fish species is rapid and driven by both range overlap and symmetry . Ecology letters , 22 ( 1 ): 190 – 199 . OpenUrl CrossRef PubMed ↵ Hill , G. E . ( 2006 ). Bird coloration, volume 2: function and evolution. Harvard University Press . ↵ Hill , G. E. and McGraw , K. J. ( 2006 ). Bird coloration, volume 1: mechanisms and measurements, volume 1 . Harvard University Press . ↵ Hogan , B. G. and Stoddard , M. C. ( 2024 ). Hyperspectral imaging in animal coloration research: A user-friendly pipeline for image generation, analysis, and integration with 3d modeling . PLoS biology , 22(12):e3002867. ↵ Huelsenbeck , J. P. , Nielsen , R. , and Bollback , J. P. ( 2003 ). Stochastic mapping of morphological characters . Systematic biology , 52 ( 2 ): 131 – 158 . OpenUrl CrossRef PubMed Web of Science ↵ Ibáñez-Álamo , J. D. , Delhey , K. , Izquierdo , L. , Valcu , M. , and Kempenaers , B. ( 2025 ). Colourful urban birds: Bird species successful in urban environments have more elaborate colours and less brown . Ecology Letters , 28(4):e70106. ↵ Irwin , R. E. ( 1994 ). The evolution of plumage dichromatism in the new world blackbirds: social selection on female brightness . The American Naturalist , 144 ( 6 ): 890 – 907 . OpenUrl CrossRef Web of Science ↵ Karan , E. , Schwartz , S. , Perillo , M. , and Alfaro , M. ( 2021 ). It’s not just a phase: evolutionary and functional consequences of sexually dimorphic color pattern diversity in labrid fishes. In Integrative and Comparative Biology, volume 61, pages E442–E443. Oxford Univ Press Inc Journals Dept, 2001 Evans RD, Cary, NC 27513 USA . ↵ Karan , E. A. , Hodge , J. R. , and Alfaro , M. E. ( 2025 ). Eyespot function in butterflyfishes (chaetodontidae): comparing evidence for aposematism, automimicry, and predator mimicry . Biological Journal of the Linnean Society , 144(2):blae122. ↵ Maia , R. , Eliason , C. M. , Bitton , P.-P. , Doucet , S. M. , and Shawkey , M. D. ( 2013 ). pavo: an r package for the analysis, visualization and organization of spectral data . Methods in Ecology and Evolution , 4 ( 10 ): 906 – 913 . OpenUrl ↵ Maia , R. , Gruson , H. , Endler , J. A. , and White , T. E. ( 2019 ). pavo 2: new tools for the spectral and spatial analysis of colour in r . Methods in Ecology and Evolution , 10 ( 7 ): 1097 – 1107 . OpenUrl ↵ Maia , R. , Rubenstein , D. R. , and Shawkey , M. D. ( 2016 ). Selection, constraint, and the evolution of coloration in african starlings . Evolution , 70 ( 5 ): 1064 – 1079 . OpenUrl CrossRef PubMed ↵ Mason , N. A. and Bowie , R. C. ( 2020 ). Plumage patterns: Ecological functions, evolutionary origins, and advances in quantification . The Auk , 137(4):ukaa060. ↵ Matheson , C. A. ( 2014 ). inaturalist . Reference Reviews , 28 ( 8 ): 36 – 38 . OpenUrl CrossRef ↵ Mayr , E. et al. ( 1963 ). Animal species and evolution. Animal species and evolution . ↵ McMillan , W. O. , Weigt , L. A. , and Palumbi , S. R. ( 1999 ). Color pattern evolution, assortative mating, and genetic differentiation in brightly colored butterflyfishes (chaetodontidae) . Evolution , 53 ( 1 ): 247 – 260 . OpenUrl CrossRef PubMed Web of Science ↵ Neudecker , S. ( 1989 ). Eye camouflage and false eyespots: chaetodontid responses to predators . In The butterflyfishes: success on the coral reef , pages 143 – 158 . Springer. ↵ Nicholson , K. E. , Harmon , L. J. , and Losos , J. B. ( 2007 ). Evolution of anolis lizard dewlap diversity . PLoS one , 2(3):e274. ↵ Paradis , E. , Claude , J. , and Strimmer , K. ( 2004 ). Ape: analyses of phylogenetics and evolution in r language . Bioinformatics , 20 ( 2 ): 289 – 290 . OpenUrl CrossRef PubMed Web of Science ↵ Pennell , M. W. , Eastman , J. M. , Slater , G. J. , Brown , J. W. , Uyeda , J. C. , FitzJohn , R. G. , Alfaro , M. E. , and Harmon , L. J. ( 2014 ). geiger v2. 0: an expanded suite of methods for fitting macroevolutionary models to phylogenetic trees . Bioinformatics , 30 ( 15 ): 2216 – 2218 . OpenUrl CrossRef PubMed ↵ Porzio , N. S. and Mota , P. G. ( 2025 ). Evidence for the evolution of male and female cardinals plumage colouration being affected by both natural and sexual selection . BMC Ecology and Evolution , 25 ( 1 ): 1 – 11 . OpenUrl ↵ Powers , D. M. ( 2020 ). Evaluation: from precision, recall and f-measure to roc, informedness, markedness and correlation . arXiv preprint arXiv:2010.16061 . ↵ Price-Waldman , R. M. , Ali , J. R. , Shultz , A. J. , Hogan , B. G. , and Stoddard , M. C. ( 2025 ). Hidden white and black feather layers enhance plumage coloration in tanagers and other songbirds . Science Advances , 11(30):eadw5857. ↵ Price-Waldman , R. M. , Shultz , A. J. , and Burns , K. J. ( 2020 ). Speciation rates are correlated with changes in plumage color complexity in the largest family of songbirds . Evolution , 74 ( 6 ): 1155 – 1169 . OpenUrl CrossRef PubMed ↵ Rabosky , A. R. D. , Cox , C. L. , Rabosky , D. L. , Title , P. O. , Holmes , I. A. , Feldman , A. , and McGuire , J. A. ( 2016 ). Coral snakes predict the evolution of mimicry across new world snakes . Nature communications , 7 ( 1 ): 1 – 9 . OpenUrl ↵ Revell , L. J. ( 2012 ). phytools: an r package for phylogenetic comparative biology (and other things) . Methods in ecology and evolution , (2):217–223. ↵ Revell , L. J. ( 2024 ). phytools 2.0: an updated r ecosystem for phylogenetic comparative methods (and other things) . PeerJ , 12:e16505. ↵ Santangeli , A. , Haukka , A. , Morris , W. , Arkkila , S. , Delhey , K. , Kempenaers , B. , Valcu , M. , Dale , J. , Lehikoinen , A. , and Mammola , S. ( 2023 ). What drives our aesthetic attraction to birds? npj Biodiversity , 2(1):20. ↵ Schwartz , S. T. and Alfaro , M. E. ( 2021 ). Sashimi: A toolkit for facilitating high-throughput organismal image segmentation using deep learning . Methods in Ecology and Evolution , 12 ( 12 ): 2341 – 2354 . OpenUrl ↵ Senior , R. A. , Oliveira , B. F. , Dale , J. , and Scheffers , B. R. ( 2022 ). Wildlife trade targets colorful birds and threatens the aesthetic value of nature . Current Biology , 32 ( 19 ): 4299 – 4305 . OpenUrl CrossRef PubMed ↵ Shultz , A. J. and Burns , K. J. ( 2013 ). Plumage evolution in relation to light environment in a novel clade of neotropical tanagers . Molecular Phylogenetics and Evolution , 66 ( 1 ): 112 – 125 . OpenUrl CrossRef PubMed ↵ Shultz , A. J. and Burns , K. J . ( 2017 ). The role of sexual and natural selection in shaping patterns of sexual dichromatism in the largest family of songbirds (aves: Thraupidae) . Evolution , 71 ( 4 ): 1061 – 1074 . OpenUrl CrossRef PubMed ↵ Stevens , M. , Párraga , C. A. , Cuthill , I. C. , Partridge , J. C. , and Troscianko , T. S. ( 2007 ). Using digital photography to study animal coloration . Biological Journal of the Linnean society , 90 ( 2 ): 211 – 237 . OpenUrl CrossRef Web of Science ↵ Stoddard , M. C. , Eyster , H. N. , Hogan , B. G. , Morris , D. H. , Soucy , E. R. , and Inouye , D. W. ( 2020 ). Wild hummingbirds discriminate non-spectral colors . Proceedings of the National Academy of Sciences , 117 ( 26 ): 15112 – 15122 . OpenUrl Abstract / FREE Full Text ↵ Stoddard , M. C. and Osorio , D. ( 2019 ). Animal coloration patterns: linking spatial vision to quantitative analysis . The American Naturalist , 193 ( 2 ): 164 – 186 . OpenUrl CrossRef PubMed ↵ Stoddard , M. C. and Prum , R. O. ( 2011 ). How colorful are birds? evolution of the avian plumage color gamut . Behavioral Ecology , 22 ( 5 ): 1042 – 1052 . OpenUrl CrossRef ↵ Sullivan , B. L. , Wood , C. L. , Iliff , M. J. , Bonney , R. E. , Fink , D. , and Kelling , S. ( 2009 ). ebird: A citizen-based bird observation network in the biological sciences . Biological conservation , 142 ( 10 ): 2282 – 2292 . OpenUrl CrossRef Web of Science ↵ Terrill , R. S. and Shultz , A. J. ( 2023 ). Feather function and the evolution of birds . Biological Reviews , 98 ( 2 ): 540 – 566 . OpenUrl CrossRef ↵ Valvo , J. J. , Rodd , F. H. , Aponte , J. D. , Daniel , M. , Dwinell , K. , Houle , D. , and Hughes , K. A. ( 2020 ). Colormesh: A novel method for quantifying variation in complex color patterns . bioRxiv . ↵ Van Belleghem , S. M. , Papa , R. , Ortiz-Zuazaga , H. , Hendrickx , F. , Jiggins , C. D. , Owen McMillan , W. , and Counterman , B. A. ( 2018 ). patternize: An r package for quantifying colour pattern variation . Methods in Ecology and Evolution , 9 ( 2 ): 390 – 398 . OpenUrl ↵ van den Berg , C. P. , Troscianko , J. , Endler , J. A. , Marshall , N. J. , and Cheney , K. L. ( 2020 ). Quantitative colour pattern analysis (qcpa): a comprehensive framework for the analysis of colour patterns in nature . Methods in Ecology and Evolution , 11 ( 2 ): 316 – 332 . OpenUrl ↵ Weller , H. I. , Hiller , A. E. , Lord , N. P. , and Van Belleghem , S. M. ( 2024 ). recolorize: An r package for flexible colour segmentation of biological images . Ecology Letters , 27(2):e14378. ↵ Weller , H. I. and Westneat , M. W. ( 2019 ). Quantitative color profiling of digital images with earth movers distance using the r package colordistance . PeerJ , 7: e6398 . ↵ Yu , J. , Duan , H. , Zhang , B. , Zhang , L. , and He , J. ( 2024 ). Urbanization alters the geographic patterns of passerine plumage color in china . Landscape and Urban Planning , 248:105101. View the discussion thread. Back to top Previous Next Posted February 27, 2026. Download PDF Data/Code Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following charisma: An R package to perform reproducible color characterization of digital images for biological studies Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share charisma: An R package to perform reproducible color characterization of digital images for biological studies Shawn T. Schwartz , Whitney L.E. Tsai , Elizabeth A. Karan , Mark S. Juhn , Allison J. Shultz , John E. McCormack , Thomas B. Smith , Michael E. Alfaro bioRxiv 2025.11.25.690362; doi: https://doi.org/10.1101/2025.11.25.690362 Share This Article: Copy Citation Tools charisma: An R package to perform reproducible color characterization of digital images for biological studies Shawn T. Schwartz , Whitney L.E. Tsai , Elizabeth A. Karan , Mark S. Juhn , Allison J. Shultz , John E. McCormack , Thomas B. Smith , Michael E. Alfaro bioRxiv 2025.11.25.690362; doi: https://doi.org/10.1101/2025.11.25.690362 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Evolutionary Biology Subject Areas All Articles Animal Behavior and Cognition (7642) Biochemistry (17715) Bioengineering (13907) Bioinformatics (42003) Biophysics (21470) Cancer Biology (18624) Cell Biology (25533) Clinical Trials (138) Developmental Biology (13390) Ecology (19935) Epidemiology (2067) Evolutionary Biology (24356) Genetics (15617) Genomics (22529) Immunology (17753) Microbiology (40432) Molecular Biology (17200) Neuroscience (88681) Paleontology (667) Pathology (2840) Pharmacology and Toxicology (4828) Physiology (7653) Plant Biology (15171) Scientific Communication and Education (2046) Synthetic Biology (4304) Systems Biology (9826) Zoology (2271)

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-26T02:00:01.498150+00:00
License: CC-BY-NC-4.0