IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v23y2023i2p336-385.html
   My bibliography  Save this article

Color palettes for Stata graphics: An update

Author

Listed:
  • Ben Jann

    (University of Bern)

Abstract

This article is an update to Jann (2018a, Stata Journal 18: 765–785). It contains a comprehensive discussion of the colorpalette command, including various changes and additions that have been made to the software since its first publication. Command colorpalette provides colors for use in Stata graphics. In addition to Stata’s default colors, colorpalette supports a variety of named colors, a selection of palettes that have been proposed by users, numerous collections of palettes and colormaps from sources such as ColorBrewer, Carto, D3.js, or Matplotlib, as well as color generators in different color spaces. Furthermore, a new command called colorcheck is presented that can be used to evaluate whether colors are distinguishable by people suffering from color vision deficiency.

Suggested Citation

  • Ben Jann, 2023. "Color palettes for Stata graphics: An update," Stata Journal, StataCorp LP, vol. 23(2), pages 336-385, June.
  • Handle: RePEc:tsj:stataj:v:23:y:2023:i:2:p:336-385
    DOI: 10.1177/1536867X231175264
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj23-2/gr0075_1/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=gr0075_1
    File Function: link to article purchase
    Download Restriction: no

    File URL: https://libkey.io/10.1177/1536867X231175264?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Zeileis, Achim & Hornik, Kurt & Murrell, Paul, 2009. "Escaping RGBland: Selecting colors for statistical graphics," Computational Statistics & Data Analysis, Elsevier, vol. 53(9), pages 3259-3270, July.
    2. Svend Juul, 2003. "Lean mainstream schemes for Stata 8 graphics," Stata Journal, StataCorp LP, vol. 3(3), pages 295-301, September.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. David Roodman, 2022. "Schooling and Labor Market Consequences of School Construction in Indonesia: Comment," Papers 2207.09036, arXiv.org, revised Mar 2024.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ben Jann, 2022. "ColrSpace: A Mata class for color management," University of Bern Social Sciences Working Papers 42, University of Bern, Department of Social Sciences, revised 03 Jun 2022.
    2. repec:jss:jstsof:32:i01 is not listed on IDEAS
    3. Jonas Schöley, 2021. "The centered ternary balance scheme: A technique to visualize surfaces of unbalanced three-part compositions," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 44(19), pages 443-458.
    4. Pilhöfer, Alexander & Unwin, Antony, 2013. "New Approaches in Visualization of Categorical Data: R Package extracat," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 53(i07).
    5. Emura, Takeshi & Lin, Yi-Shuan, 2013. "A comparison of normal approximation rules for attribute control charts," MPRA Paper 51029, University Library of Munich, Germany.
    6. Reto Stauffer & Georg J. Mayr & Markus Dabernig & Achim Zeileis, 2013. "Somewhere over the Rainbow: How to Make Effective Use of Colors in Meteorological Visualizations," Working Papers 2013-37, Faculty of Economics and Statistics, Universität Innsbruck.
    7. Shannon P McPherron, 2018. "Additional statistical and graphical methods for analyzing site formation processes using artifact orientations," PLOS ONE, Public Library of Science, vol. 13(1), pages 1-21, January.
    8. Ben Jann, 2017. "Customizing Stata graphs made easy," University of Bern Social Sciences Working Papers 29, University of Bern, Department of Social Sciences, revised 18 Apr 2017.
    9. Fox, John & Hong, Jangman, 2009. "Effect Displays in R for Multinomial and Proportional-Odds Logit Models: Extensions to the effects Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i01).
    10. Seiler, Johannes & Harttgen, Kenneth & Kneib, Thomas & Lang, Stefan, 2021. "Modelling children's anthropometric status using Bayesian distributional regression merging socio-economic and remote sensed data from South Asia and sub-Saharan Africa," Economics & Human Biology, Elsevier, vol. 40(C).
    11. Stanislav Katina & Liberty Vittert & Adrian W. Bowman, 2021. "Functional data analysis and visualisation of three‐dimensional surface shape," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 70(3), pages 691-713, June.
    12. Carsten Sauer & Peter Valet & Stefan Liebig, 2013. "The Impact of within and between Occupational Inequalities on People's Justice Perceptions towards Their Own Earnings," SOEPpapers on Multidisciplinary Panel Data Research 567, DIW Berlin, The German Socio-Economic Panel (SOEP).
    13. Matthias Templ & Andreas Alfons & Peter Filzmoser, 2012. "Exploring incomplete data using visualization techniques," Advances in Data Analysis and Classification, Springer;German Classification Society - Gesellschaft für Klassifikation (GfKl);Japanese Classification Society (JCS);Classification and Data Analysis Group of the Italian Statistical Society (CLADAG);International Federation of Classification Societies (IFCS), vol. 6(1), pages 29-47, April.
    14. MacDonald, Blake & Ranjan, Pritam & Chipman, Hugh, 2015. "GPfit: An R Package for Fitting a Gaussian Process Model to Deterministic Simulator Outputs," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 64(i12).
    15. de Wreede, Liesbeth C. & Fiocco, Marta & Putter, Hein, 2011. "mstate: An R Package for the Analysis of Competing Risks and Multi-State Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 38(i07).
    16. Meyer, Sebastian & Held, Leonhard & Höhle, Michael, 2017. "Spatio-Temporal Analysis of Epidemic Phenomena Using the R Package surveillance," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 77(i11).
    17. Anette Fasang & Marcel Raab, 2014. "Beyond Transmission: Intergenerational Patterns of Family Formation Among Middle-Class American Families," Demography, Springer;Population Association of America (PAA), vol. 51(5), pages 1703-1728, October.
    18. Tseng, George C., 2010. "Quantile map: Simultaneous visualization of patterns in many distributions with application to tandem mass spectrometry," Computational Statistics & Data Analysis, Elsevier, vol. 54(4), pages 1124-1137, April.
    19. repec:jss:jstsof:38:i07 is not listed on IDEAS
    20. Anette Eva Fasang & Tim Futing Liao, 2014. "Visualizing Sequences in the Social Sciences," Sociological Methods & Research, , vol. 43(4), pages 643-676, November.

    More about this item

    Keywords

    palettes; colorpalette; colorcheck; ColrSpace; graph; graphics; color; color spaces; color interpolation; color vision deficiency; grayscale conversion; perceptually uniform;
    All these keywords.

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:23:y:2023:i:2:p:336-385. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.