plotSAR: Plot SAR record

Description Usage Arguments Examples

Description

Plot one SAR or two SAR records together.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
plotSAR(object, slave = NULL, xlab = "Longitude", ylab = "Latitude",
  maxpixels = 50000, max.val = 500, cex.axis = 1, cex.lab = 1,
  legend.by = 30, plotIntersect = T, border = "red", grid = T,
  plot.legend = T, legend.lab = "Amplitude", legend.line = 2.2,
  breaks = seq(0, max.val, by = 1), legend.breaks = seq(0, max.val, by =
  legend.by), zlim = c(0, max.val), cols = colorRampPalette(c("grey0",
  "grey100"))(length(seq(0, max.val, by = 1)) - 1), north.arrow = F,
  north.arrow.pos = NULL, north.arrow.length = 0.05, scalebar = F,
  scalebar.pos = NULL, scalebar.col = "black", scalebar.d = 100, ...)

## S4 method for signature 'SAR,ANY'
plotSAR(object, slave = NULL, xlab, ylab, maxpixels,
  max.val, cex.axis, cex.lab, legend.by, plotIntersect, border, grid,
  plot.legend, legend.lab, legend.line, breaks, legend.breaks, zlim, cols,
  xlim = c(object@extent@xmin, object@extent@xmax),
  ylim = c(object@extent@ymin, object@extent@ymax), asp = NULL, ...)

## S4 method for signature 'RasterLayer,ANY'
plotSAR(object, slave = NULL,
  xlab = "Longitude", ylab = "Latitude", maxpixels = 50000,
  max.val = 500, cex.axis = 1, cex.lab = 1, legend.by = 30,
  plotIntersect = T, border = "red", grid = T, plot.legend = T,
  legend.lab = "Amplitude", legend.line = 2.2, breaks = seq(0, max.val, by
  = 1), legend.breaks = seq(0, max.val, by = legend.by), zlim = c(0,
  max.val), cols = colorRampPalette(c("grey0", "grey100"))(length(seq(0,
  max.val, by = 1)) - 1), north.arrow = F, north.arrow.pos = NULL,
  north.arrow.length = 0.05, scalebar = F, scalebar.pos = NULL,
  scalebar.col = "black", scalebar.d = 100, ...)

## S4 method for signature 'SAR,SAR'
plotSAR(object, slave, xlab, ylab, maxpixels, max.val,
  cex.axis, cex.lab, legend.by, plotIntersect, border, grid, plot.legend,
  legend.lab, legend.line, breaks, legend.breaks, zlim, cols,
  xlim = c(min(object@extent@xmin, slave@extent@xmin), max(object@extent@xmax,
  slave@extent@xmax)), ylim = c(min(object@extent@ymin, slave@extent@ymin),
  max(object@extent@ymax, slave@extent@ymax)), asp = NULL, ...)

## S4 method for signature 'SARSet,ANY'
plotSAR(object, slave = NULL, xlab = "Longitude",
  ylab = "Latitude", maxpixels = 50000, max.val = 500, cex.axis = 1,
  cex.lab = 1, legend.by = 30, plotIntersect = T, border = "red",
  grid = T, plot.legend = T, legend.lab = "Amplitude",
  legend.line = 2.2, breaks = seq(0, max.val, by = 1),
  legend.breaks = seq(0, max.val, by = legend.by), zlim = c(0, max.val),
  cols = colorRampPalette(c("grey0", "grey100"))(length(seq(0, max.val, by =
  1)) - 1), north.arrow = F, north.arrow.pos = NULL,
  north.arrow.length = 0.05, scalebar = F, scalebar.pos = NULL,
  scalebar.col = "black", scalebar.d = 100, ...)

## S4 method for signature 'SARSet,ANY'
plot(x, y = NULL, ...)

Arguments

object

object of the SAR-class or a subclass (e.g. Sentinel-class or TSX-class) (or an object of the SARSet-class, then slave is ignored).

slave

object of the SAR-class or a subclass (e.g. Sentinel-class or TSX-class).

xlab

title of the x axis.

ylab

title of the y axis.

maxpixels

Maximum number of cells to use for the plot (see plot for RasterLayer object).

max.val

maximal amplitude to plot, higher amplitudes are ploted in white. To use even the highest amplitudes type 'object@data@max'.

cex.axis

Numeric. Size of axes.

cex.lab

Numeric. Size of label text.

legend.by

Numeric. Size of legend intervals.

plotIntersect

logical. Plot the intersection area?

border

color of the border.

grid

logical. Add a grid to the plot?

plot.legend

Logical. Plot the legend?

legend.lab

Character. Legend label.

legend.line

Numeric. Distance between legend and label.

breaks

Integer vector. Where to break color bar.

legend.breaks

Integer vector. Where to locate legend ticks.

zlim

Numeric vector of length 2, giving the z coordinate range. Range of values that are plotted.

cols

color ramp (see colorRampPalette).

north.arrow

logical. Plot a north arrow?

north.arrow.pos

vector c(x,y) that contains the position of the north arrow.

north.arrow.length

length of the north arrow.

scalebar

logical. Plot a scalebar?

scalebar.pos

vector c(x,y) that contains the position of the scalebar.

scalebar.col

color of the scalebar.

scalebar.d

distance in kilometers.

...

plotting parameters like xlim, ylim and asp.

xlim

Numeric vector of length 2, giving the x coordinate range.

ylim

Numeric vector of length 2, giving the y coordinate range.

asp

Numeric vector. Aspect, if latitude-longitude coordinates: 1/cos((mean(range(ylim)) * pi)/180).

x

Object of SARSet-class.

y

NULL

Examples

1
2
3

ragram documentation built on May 2, 2019, 4:42 p.m.