iplotLegend(colramp, ncol = NULL,
cex.axis = par("cex.axis"), border = FALSE,
mar = c(0, 0, 0, 3), las = 1, ...)
Arguments
colramp
Function defining color ramp,
e.g. IDPcolorRamp
ncol
Number of individual colors in color ramp. See details.
cex.axis
Magnification to be used for labels.
border
Logical. When TRUE, a border is drawn around
the individual colors in the legend.
mar
Margin. See par.
las
Orientation of labels on axis. See par.
...
Additional arguments to par
Details
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'.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(IDPmisc)
Loading required package: grid
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IDPmisc/iplotLegend.Rd_%03d_medium.png", width=480, height=480)
> ### Name: iplotLegend
> ### Title: Plots Legend for Color Ramp
> ### Aliases: iplotLegend
> ### Keywords: hplot
>
> ### ** Examples
>
> ## Not run:
> ##D par(oma=rep(2,4))
> ##D layout(matrix(c(1,2),ncol=2),
> ##D width=c(lcm(par("csi")*5*2.54),1),
> ##D heights=1)
> ## End(Not run)
> iplotLegend(IDPcolorRamp,ncol=15)
>
>
>
>
>
> dev.off()
null device
1
>