Last data update: 2014.03.03

R: Path fast view
viewR Documentation

Path fast view

Description

view provides a fast plot of a segmented trajectory or specific chunks of it.

Usage

view(obj, ...)

## S4 method for signature 'binClstPath'
view(obj, lbl = NULL, lims = NULL, bg = NULL, ...)

## S4 method for signature 'data.frame'
view(obj, lbl = NULL, lims = NULL, bg = NULL, ...)

Arguments

obj

A binClstPath_instance or a data.frame with the format described for slot binClstPath@pth.

...

Parameters lbl and lims are optional.

lbl

A numeric vector with location labels. If obj is a binClstPath_instance the clustering labels are used by default.

lims

A numeric vector with lower and upper limit locations to show only a chunk of the trajectory.

bg

A valid colour especification to be used as background colour. By default a light-grey colour is used to enhance data points visibility.

Examples

# -- Fast view of the binClstPath instance included in the package --
view(expth)
# -- the same with reference labels --
view(expth,lbl=TRUE)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EMbC)
Loading required package: move
Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.1-10, (SVN revision 622)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16
 Path to GDAL shared files: /usr/share/gdal/1.11
 Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.2-3 
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/EMbC/view.Rd_%03d_medium.png", width=480, height=480)
> ### Name: view
> ### Title: Path fast view
> ### Aliases: view view,binClstPath-method view,data.frame-method
> 
> ### ** Examples
> 
> # -- Fast view of the binClstPath instance included in the package --
> view(expth)
> # -- the same with reference labels --
> view(expth,lbl=TRUE)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>