The colors.plot
function plots R's 657 named colors. If
locator=TRUE
then you can interactively point and click to
select the colors for which you want names. To end selection, right
click on the mouse and select 'Stop', then R returns the selected
color names.
The colors.matrix
function is used by colors.plot
to
create the matrix of color names that corresponds to the graph created
by colors.plot
. colors.matrix
can be used alone to
create the matrix of name without generating a plot. To see the matrix
it must be assigned an object name and then displayed.