Learn R Programming

bioRad (version 0.4.0)

plot.ppi: Plot a plan position indicator (ppi)

Description

Plot a plan position indicator (PPI) generated with ppi using ggplot

Usage

# S3 method for ppi
plot(x, param, xlim, ylim, zlim = c(-20, 20), ratio = 1,
  ...)

Arguments

x

An object of class ppi.

param

The scan parameter to plot, see details below.

xlim

Range of x values to plot.

ylim

Range of y values to plot.

zlim

The range of parameter values to plot.

ratio

Aspect ratio between x and y scale.

...

Arguments passed to low level ggplot function.

Details

Available scan paramaters for plotting can by printed to screen by summary(x). Commonly available parameters are:

"DBZH", "DBZ"

(Logged) reflectivity factor [dBZ]

"VRADH", "VRAD"

Radial velocity [m/s]. Radial velocities towards the radar are negative, while radial velocities away from the radar are positive

"RHOHV"

Correlation coefficient [unitless]. Correlation between vertically polarized and horizontally polarized reflectivity factor

"PHIDP"

Differential phase [degrees]

"ZDR"

(Logged) differential reflectivity [dB]

The scan parameters are named according to the OPERA data information model (ODIM), see Table 16 in the ODIM specification.

Examples

Run this code
# NOT RUN {
# load an example scan:
data(example_scan)
# print to screen the available scan parameters:
summary(example_scan)
# make ppi for the scan
ppi <- project_as_ppi(example_scan)
# plot the first scan parameter, which in this case is "VRADH":
plot(ppi)
# plot the reflectivity parameter:
plot(ppi, param = "DBZH")
# change the range of reflectivities to plot to -30 to 50 dBZ:
plot(ppi, param = "DBZH", zlim = c(-30, 50))
# }

Run the code above in your browser using DataLab