Learn R Programming

sigloc (version 0.0.4)

as.receiver: Coerce to Class 'receiver'

Description

The function as.receiver coerces an object to class receiver. as.data.frame can be used to convert an object inheriting the class receiver into a data.frame. plot allows a graphical display of the receiver locations.

Usage

as.receiver(x)
"plot"(x, add, pch, cex, col, bearings, ...)
"print"(x, ...)
"as.data.frame"(x, row.names = NULL,optional = FALSE, ...)

Arguments

x
An object inheriting the class data.frame or table containing the X and Y location of the receiver, the bearings of the transmitter signal, and the identification of the point groupings.
add
A logical specification for whether to plot locations onto an existing plot window.
pch
Either an integer specifying a symbol or a single character to be used as the default in plotting points.
cex
A numerical value giving the amount by which plotting locations should be magnified to the default.
col
A specification for the default plotting color.
bearings
A logical specification for whether azimuth bearings should be plotted alongside locations.
row.names
NULL or a character vector giving the row names for the data frame. Missing values are not allowed.
optional
Logical. If TRUE, setting row names and convering column names is optional.
...
Additional parameters to be passed to the generic function plot, print, and as.data.frame.

Value

as.receiver returns an object belonging to the S4 class receiver

Details

The function as.receiver coerces an object inheriting the class data.frame or table into an object inheriting the class receiver. This class is used mainly to explore and standardize the ouput and input of radio telemetry data. The plot function for this class allows for the user to plot the azimuth bearings associated with each of the receiver locations by setting the input parameter bearings to TRUE and to append the plotted objects to an existing plot window by setting the input parameter add to TRUE.

See Also

locate for additional information on the class transmitter. findintersects for additional information on the class intersect

Examples

Run this code
## Load the data
data(bear)

## Convert data to class 'receiver
bear<-as.receiver(bear)

## Display resulting object with bearings
plot(bear,bearings=TRUE,xlab="Easting",ylab="Northing")

Run the code above in your browser using DataLab