| colors.plot {epitools} | R Documentation |
Plots R's 657 named colors for selection
colors.plot(locator = FALSE, cex.axis = 0.7) colors.matrix()
colors.plot:
locator |
activates 'locator' for interactive selection of color names (default is FALSE) |
cex.axis |
change size of axes labels |
colors.matrix has no arguments.
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.
colors.plot generates plot with R colors and, when
locator=TRUE, returns matrix with graph coordinates and
names of colors selected
colors.matrix quietly returns matrix of names
Visit http://www.epitools.net for the latest.
Tomas Aragon, aragon@berkeley.edu, http://www.medepi.net/aragon
none
colorbrewer.display, colorbrewer.palette,
colorbrewer.data
##creates matrix with color names cm <- colors.matrix() cm[1:3, 1:3] ##generates plot colors.plot() ##generates plot and activates 'locator' ##don't run ##colors.plot(TRUE)