plotAngles: Plot angles

Description Usage Arguments See Also Examples

Description

Plots the angles provided by GCPs/TPs as points.

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
plotAngles(object, z = "thetaIn", xlab = "Longitude", ylab = "Latitude",
  breaks = 255, col.regions = colorRampPalette(colors)(breaks), cex = 1,
  cex.axis = 1, grid = T, plot.legend = T, pch = 20,
  legend.lab = expression(paste(theta[i], " [deg]")), variogram.fit = T,
  plot.fit = F, interpolate = F, aggregate.fact = 100, ...)

## S4 method for signature 'SpatialPointsDataFrame'
plotAngles(object, z, xlab, ylab, breaks,
  col.regions, cex, cex.axis, grid, plot.legend, pch, legend.lab, variogram.fit,
  plot.fit, interpolate, aggregate.fact, xlim = object@bbox[1, ],
  ylim = object@bbox[2, ], asp = 1/cos((mean(range(ylim)) * pi)/180),
  zlim = c(min(object@data[, z]), max(object@data[, z])), ...)

## S4 method for signature 'SAR'
plotAngles(object, z, xlab, ylab, breaks, col.regions, cex,
  cex.axis, grid, plot.legend, pch, legend.lab, variogram.fit, plot.fit,
  interpolate, aggregate.fact, xlim = c(object@extent@xmin,
  object@extent@xmax), ylim = c(object@extent@ymin, object@extent@ymax),
  asp = 1/cos((mean(range(ylim)) * pi)/180), zlim = c(min(my.angles@data[,
  z]), max(my.angles@data[, z])), ...)

## S4 method for signature 'SARSet'
plotAngles(object, z = "thetaIn", xlab = "Longitude",
  ylab = "Latitude", breaks = 255,
  col.regions = colorRampPalette(colors)(breaks), cex = 1, cex.axis = 1,
  grid = T, plot.legend = T, pch = 20,
  legend.lab = expression(paste(theta[i], " [deg]")), variogram.fit = T,
  plot.fit = F, interpolate = F, aggregate.fact = 100, ...)

Arguments

object

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

z

Character. Either incidence ('thetaIn', default) or elevation angles 'thetaEl'.

xlab

Character. Title of the x axis.

ylab

Character. Title of the y axis.

breaks

Integer. Number of breaks of the color ramp.

col.regions

Color ramp.

cex

Numeric. Size of label text.

cex.axis

Numeric. Size of axes.

grid

Logical. Plot a grid?

plot.legend

Logical. Plot the legend?

pch

Integer. Point type.

legend.lab

Character. Title of the legend.

variogram.fit

Logical. Fit a Gaussian variogram?

plot.fit

Logical. Plot the fitted variogram?

interpolate

Logical. Interpolate angles?

aggregate.fact

Integer. Aggregation factor expressed as number of cells in each direction (horizontally and vertically). Or two integers (horizontal and vertical aggregation factor) or three integers (when also aggregating over layers). See aggregate method of raster package.

...

graphical parameters. Any argument that can be passed to plot, such as axes=FALSE and main='title'.

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, default is 1/cos((mean(range(ylim)) * pi)/180).

zlim

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

See Also

angles, GeolocationPoints-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(kili)

angles(kili[[1]])
plotAngles(kili[[1]])
plotAngles(kili[[5]])

plot(angles(kili[[1]]))
spplot(angles(kili[[1]]))

plotAngles(master, interpolate = TRUE, aggregate.fact=100)

angles.sp <- angles(master, interpolate = TRUE, aggregate.fact=10)
angles.raster <- rasterFromXYZ(angles.sp)

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