Plots legend for color ramp.
iplotLegend(colramp, ncol = NULL, cex.axis = par("cex.axis"), border = FALSE, mar = c(0, 0, 0, 3), las = 1, ...)
Function defining color ramp, e.g. IDPcolorRamp
IDPcolorRamp
Number of individual colors in color ramp. See details.
Magnification to be used for labels.
Logical. When TRUE, a border is drawn around the individual colors in the legend.
TRUE
Margin. See par.
par
Orientation of labels on axis. See par.
Additional arguments to par
A color ramp of ncol+1 individual colors is plotted, starting with the background color (= color 0). When ncol = NULL a color ramp of 101 individual colors is plotted. The color at the bottom is labeled by '0', the color at the top by 'max'.
ncol+1
ncol = NULL
# NOT RUN { par(oma = rep(2, 4)) layout(matrix(c(1, 2), ncol = 2), width = c(lcm(par("csi")*5*2.54), 1), heights = 1) # } # NOT RUN { iplotLegend(IDPcolorRamp, ncol = 15) # }
Run the code above in your browser using DataLab