A command to preview one or more brewscheme color palettes



brewviewer – A utility for brewscheme to preview color palettes available.

Syntax

brewviewer palette names [, colors(numlist) combine seq impaired ]

Description

brewviewer is a utility for the brewscheme program that provides you with a way to preview different combinations of palettes and numbers of colors. You can view examples of each of the palettes distributed with brewscheme in the Gallery below. The table below is provided for more immediate access to a specific color palette preview:

ColorPaletteNames
accentactivitiesaactivitiest
bluesbrandsabrandse
brbgbugnbupu
carsacarsecategory10
category20category20bcategory20c
dark2drinksadrinkse
featuresafeaturestfooda
foodefruitafruite
ggplot2gnbugreens
greysmdebarmdepoint
orangesorrdpaired
pastel1pastel2piyg
prgnpubupubugn
puorpurdpurples
rdburdgyrdpu
rdylburdylgnreds
set1set2set3
spectraltableauveggiesa
veggieseylgnylgnbu
ylorbrylorrd

For additional information about the palettes and/or transformations, see the references listed below.

Options

colors is a required argument and is used to specify the number of colors to preview. If a single argument is passed it is used for all palettes. If the number of color values passed is the same as the number of palettes the program will treat the values as being specific to the corresponding palette specified. If there are fewer colors than palettes, the maximum value of the colors parameter will be used for the graphs if the seq option is passed, else the same colors are recycled for each of the graphs. Lastly, if the number of colors passed is greater than the number of palettes, it will override the seq option and treat each of the numbers as discrete for all palettes.

combine is an optional argument used to generate a single combined graph with each of the graphs combined in a single image.

seq is an optional argument used to tell the program that you want to treat the number of colors as the maximum number of sequences to graph. For example, if a value of 5 is passed to colors and seq is selected, the resulting graph will contain columns showing colors 1-3, 1-4, and 1-5. If this option is not selected, it will only show a single column of colors from 1-5.

impaired is an optional argument to display the palette(s) along with color sight impaired transformations of the colors.

Examples

Ex 1.

Show the D3js category10 palette with up to 6 colors with color sight impaired transformed colors

brewviewer category10, im seq c(6)

brewviewerEx1

Ex 2.

Display colors from multiple palettes with varying numbers of colors for each palette.

brewviewer category10 category20 category20b category20c, c(5 8 10 12)  comb seq

brewviewerEx2

Ex 3.

Preview sequences for color palettes with 3-5 colors for multiple palettes simultaneously and combine in a single image.

brewviewer dark2 mdebar accent pastel2 set1 tableau, c(5) seq comb

brewviewerEx3

Ex 4.

Similar to example above, but only show instances with the colors 1-5 for each of the color palettes:

brewviewer dark2 mdebar accent pastel2 set1 tableau, c(5) comb

brewviewerEx4

Acknowledgements

This subroutine for brewscheme was inspired and influenced by Mattieu Gomez’s program stata-colorscheme.

The full set of palettes (based on the maximum number of colors available in the palette), displayed with the sequential option and impaired options is available below.

accent

galleryEx4. top of the gallery back to the top

activitiesa

galleryEx1 top of the gallery back to the top

activitiest

galleryEx2 top of the gallery back to the top

blues

galleryEx3 top of the gallery back to the top

brandsa

galleryEx4 top of the gallery back to the top

brandse

galleryEx5 top of the gallery back to the top

brbg

galleryEx6 top of the gallery back to the top

bugn

galleryEx7 top of the gallery back to the top

bupu

galleryEx8 top of the gallery back to the top

carsa

galleryEx9 top of the gallery back to the top

carse

galleryEx10 top of the gallery back to the top

category10

galleryEx11 top of the gallery back to the top

category20

galleryEx12 top of the gallery back to the top

category20b

galleryEx13 top of the gallery back to the top

category20c

galleryEx14 top of the gallery back to the top

dark2

galleryEx15 top of the gallery back to the top

drinksa

galleryEx16 top of the gallery back to the top

drinkse

galleryEx17 top of the gallery back to the top

featuresa

galleryEx18 top of the gallery back to the top

featurest

galleryEx19 top of the gallery back to the top

fooda

galleryEx20 top of the gallery back to the top

foode

galleryEx21 top of the gallery back to the top

fruita

galleryEx22 top of the gallery back to the top

fruite

galleryEx23 top of the gallery back to the top

ggplot2

galleryEx24 top of the gallery back to the top

gnbu

galleryEx25 top of the gallery back to the top

greens

galleryEx26 top of the gallery back to the top

greys

galleryEx27 top of the gallery back to the top

mdebar

galleryEx28 top of the gallery back to the top

mdepoint

galleryEx29 top of the gallery back to the top

oranges

galleryEx30 top of the gallery back to the top

orrd

galleryEx31 top of the gallery back to the top

paired

galleryEx32 top of the gallery back to the top

pastel1

galleryEx33 top of the gallery back to the top

pastel2

galleryEx34 top of the gallery back to the top

piyg

galleryEx35 top of the gallery back to the top

prgn

galleryEx36 top of the gallery back to the top

pubu

galleryEx37 top of the gallery back to the top

pubugn

galleryEx38 top of the gallery back to the top

puor

galleryEx39 top of the gallery back to the top

purd

galleryEx40 top of the gallery back to the top

purples

galleryEx41 top of the gallery back to the top

rdbu

galleryEx42 top of the gallery back to the top

rdgy

galleryEx43 top of the gallery back to the top

rdpu

galleryEx44 top of the gallery back to the top

rdylbu

galleryEx45 top of the gallery back to the top

rdylgn

galleryEx46 top of the gallery back to the top

reds

galleryEx47 top of the gallery back to the top

set1

galleryEx48 top of the gallery back to the top

set2

galleryEx49 top of the gallery back to the top

set3

galleryEx50 top of the gallery back to the top

spectral

galleryEx51 top of the gallery back to the top

tableau

galleryEx52 top of the gallery back to the top

veggiesa

galleryEx53 top of the gallery back to the top

veggiese

galleryEx54 top of the gallery back to the top

ylgn

galleryEx55 top of the gallery back to the top

ylgnbu

galleryEx56 top of the gallery back to the top

ylorbr

galleryEx57 top of the gallery back to the top

ylorrd

galleryEx58 top of the gallery back to the top

References

Bostock, M., Ogievetsky, V., & Heer, J. (2011). D3: data driven documents. IEEE Transactions on Visualization & Computer Graphics. 17(12) pp 2301 - 2309. Retrieved from http://vis.stanford.edu/papers/d3

Brewer, C. A. (2002). Color Brewer 2. [Computer Software]. State College, PA: Cynthia Brewer, Mark Harrower, and The Pennsylvania State University

Krzywinski, M. (2015). Color palettes for color blindness. Retrieved on: 22nov2015. Retrieved from: http://mkweb.bcgsc.ca/colorblind/

Lin, S., Fortuna, J., Kulkarni, C., Stone, M., {c 38} Heer, J. (2013). Selecting Semantically-Resonant Colors for Data Visualization. Computer Graphics Forum 32(3) pp. 401-410. Retrieved from http://vis.stanford.edu/files/2013-SemanticColor-EuroVis.pdf

Lindbloom, B. (2001). RGB working space information. Retrieved from: http://www.brucelindbloom.com/WorkingSpaceInfo.html. Retrieved on 24nov2015.

Meyer, G. W., & Greenberg, D. P. (1988). Color-Defective Vision and Computer Graphics Displays. Computer Graphics and Applications, IEEE 8(5), pp. 28-40.

Smith, V. C., & Pokorny, J. (2005). Spectral sensitivity of the foveal cone photopigments between 400 and 500nm. Journal of the Optical Society of America A, 22(10), pp. 2060-2071.

Wickham, H. (2009). ggplot2: Elegant Graphics for Data Analysis. New York City, NY: Springer Science+Business Media LLC.

Wickline, M. (2014). Color.Vision.Simulate, Version 0.1. Retrieved from: http://galacticmilk.com/labs/Color-Vision/Javascript/Color.Vision.Simulate.js. Retrieved on: 24nov2015 back to the top