as.receiver: Coerce to Class 'receiver'

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sigloc.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as.receiver(x)

## S3 method for class 'receiver'
plot(x, add, pch, cex, col, bearings, ...)

## S3 method for class 'receiver'
print(x, ...)

## S3 method for class 'receiver'
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.

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.

Value

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

Author(s)

Sergey S. Berg berg1546@umn.edu

See Also

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

Examples

1
2
3
4
5
6
7
8
## 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")

Example output

Loading required package: nleqslv
Loading required package: ellipse

sigloc documentation built on May 29, 2017, 4:30 p.m.

Related to as.receiver in sigloc...