Learn R Programming

NetRep (version 1.0.2)

addGradientLegend: Plot a color palette legend

Description

Add a legend to a plot window.

Usage

addGradientLegend(palette, legend.vlim, horizontal, main, xlim, ylim, tck = 0.04, axis.line = 3, legend.main.line = 1, lwd = 2, srt)

Arguments

palette
color palette.
legend.vlim
limits of the values to display on the legend
horizontal
logical; if TRUE the legend is plotted horizontally, otherwise vertically.
main
title of the legend.
xlim
xlim relative to the plotting region of the rest of the plot.
ylim
ylim relative to the plotting region of the rest of the plot.
tck
size of the legend axis ticks relative to the size of the plot window.
axis.line
distance from the axis to render the axis labels as a multiple of tck.
legend.main.line
distance from the plot to render the legend title.
lwd
line width for borders.
srt
angle of text labels