Learn R Programming

PBSmodelling (version 2.68.6)

pickCol: Pick a Colour From a Palette and get the Hexadecimal Code

Description

Display an interactive colour palette from which the user can choose a colour.

Usage

pickCol(returnValue=TRUE)

Arguments

returnValue

If TRUE, display the full colour palette, choose a colour, and return the hex value to the R session. If FALSE, use an intermediate GUI to interact with the palette and display the hex value of the chosen colour.

Value

A hexidecimal colour value.

See Also

testCol

Examples

Run this code
# NOT RUN {
local(envir=.PBSmodEnv,expr={
  junk<-pickCol(); resetGraph()
  addLabel(.5,.5,junk,cex=4,col=junk)
})
# }

Run the code above in your browser using DataLab