{"title":"Stata图形的调色板:更新","authors":"Ben Jann","doi":"10.1177/1536867X231175264","DOIUrl":null,"url":null,"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.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":3.2000,"publicationDate":"2023-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Color palettes for Stata graphics: An update\",\"authors\":\"Ben Jann\",\"doi\":\"10.1177/1536867X231175264\",\"DOIUrl\":null,\"url\":null,\"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.\",\"PeriodicalId\":51171,\"journal\":{\"name\":\"Stata Journal\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":3.2000,\"publicationDate\":\"2023-06-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Stata Journal\",\"FirstCategoryId\":\"100\",\"ListUrlMain\":\"https://doi.org/10.1177/1536867X231175264\",\"RegionNum\":2,\"RegionCategory\":\"数学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"SOCIAL SCIENCES, MATHEMATICAL METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Stata Journal","FirstCategoryId":"100","ListUrlMain":"https://doi.org/10.1177/1536867X231175264","RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"SOCIAL SCIENCES, MATHEMATICAL METHODS","Score":null,"Total":0}
引用次数: 1
摘要
本文是Jann (2018a, Stata Journal 18: 765-785)的更新。它包含对colorpalette命令的全面讨论,包括自首次发布以来对软件所做的各种更改和添加。命令调色板提供Stata图形中使用的颜色。除了Stata的默认颜色外,colorpalette还支持各种已命名的颜色、用户提出的调色板选择、来自ColorBrewer、Carto、D3.js或Matplotlib等源的大量调色板和颜色映射集合,以及不同颜色空间中的颜色生成器。在此基础上,提出了一种新的颜色检查方法,用于评估色觉缺陷的人是否能够区分颜色。
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.
期刊介绍:
The Stata Journal is a quarterly publication containing articles about statistics, data analysis, teaching methods, and effective use of Stata''s language. The Stata Journal publishes reviewed papers together with shorter notes and comments, regular columns, book reviews, and other material of interest to researchers applying statistics in a variety of disciplines.