## S3 method for class 'colourmap':
plot(x, ...,
       main, xlim = NULL, ylim = NULL, vertical = FALSE, axis = TRUE,
       labelmap=NULL, gap=0.25, add=FALSE)"colourmap".image.default
    or axis.x values for the location of the
    colour ribbon.y values for the location of the
    colour ribbon.FALSE) or a vertical strip
    (TRUE).labelmap before being displayed
    on the plot. Typically used to simplify or shoradd=TRUE), or to start a new plot
    (add=FALSE, the default)."colourmap".
  An object of this class
  (created by the function colourmap)
  represents a colour map or
  colour lookup table associating colours with each data value.  The command plot.colourmap displays the colour map as a colour
  ribbon or as a colour legend (a sequence of blocks of colour).
  This plot can be useful on its own to inspect the colour map.
  If the domain of the colourmap is an interval of real numbers,
  the colourmap is displayed as a continuous ribbon of colour.
  If the domain of the colourmap is a finite set of inputs,
  the colours are displayed as separate blocks of colour.
  The separation between blocks is equal to gap times
  the width of one block. 
  To annotate an existing plot with an explanatory colour ribbon
  or colour legend,
  specify add=TRUE and use the arguments xlim
  and/or ylim to control the physical position of the ribbon
  on the plot.
  Labels explaining the colour map are
  drawn by axis and can be modified by
  specifying arguments that will be passed to this function.
colourmapco <- colourmap(rainbow(100), breaks=seq(-1,1,length=101))
  plot(co)
  plot(co, col.ticks="pink")
  ca <- colourmap(rainbow(8), inputs=letters[1:8])
  plot(ca, vertical=TRUE)Run the code above in your browser using DataLab