Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

legend.krige

Add a legend to a image with kriging results


Description

This function allows adds a legend to an image plot generated by image.kriging or image.krige.bayes. It can be called internally by these functions or directly by the user.

Usage

legend.krige(x.leg, y.leg, values, scale.vals,
             vertical = FALSE, offset.leg = 1, ...)

Arguments

x.leg

limits for the legend in the x direction.

y.leg

limits for the legend in the y direction.

values

values plotted in the image.

scale.vals

optional. Values to appear in the legend. If not provided the function pretty is used to define the values.

vertical

If TRUE the legend is drawn in the vertical direction. Defaults to FALSE.

offset.leg

numeric value controlling the distance between the legend text and the legend box.

...

further arguments to be passed to the function text.

Value

A legend is added to the current plot. No values are returned.

Author(s)

Paulo J. Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.

References

Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR.

See Also

Examples

# See examples in the documentation for image.kriging

geoR

Analysis of Geostatistical Data

v1.8-1
GPL (>= 2)
Authors
Paulo J. Ribeiro Jr [aut, cre] <paulojus@ufpr.br>, Peter J. Diggle [aut, cre] <p.diggle@lancaster.ac.uk> Ole Christensen [ctb], Martin Schlather [ctb], Roger Bivand [ctb], Brian Ripley [ctb]
Initial release
2020-02-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.