gradient_legend: Gradient legend

Usage Arguments Author(s) Examples

Usage

1
gradient_legend(labels, color_palette, cex=0.7, lab_shift=0.5)

Arguments

labels

Labels of the legend. Must be provided suitable to the colors used in the image, i.e. min and max must be the same.

color_palette

Color palette used in the plot.

Author(s)

Klara Dolos

Examples

1
2
3
layout(matrix(1:2, nrow=1), widths=c(0.8,0.2))
image(matrix(1:100, nrow=10), col=heat.colors(20))
gradient_legend(labels=round(seq(1,100, len=6)), color_palette=heat.colors(6), cex=1, lab_shift=0.45)

KIT-IfGG/pets documentation built on May 28, 2019, 12:56 p.m.