A numeric vector with lower and upper bounds to limit the plot.
Details
If obj is a matrix, axes labels are automatically generated from the
colnames() of the matrix, hence they can be changed as desired.
If obj is a binClstPath_instance it plots the values of the
intermediate computations saved in slots mybcp@spn (span times), mybcp@dst
(distances) and mybcp@hdg (local heading directions).
Examples
# -- apply EMbC to the example path --
mybcp <- stbc(expth,info=-1)
# -- plot clustering data points --
varp(mybcp@X)
# -- plot data points' certainties --
varp(mybcp@U)
# -- plot intermediate computations (span-times, distances and headings) in one figure --
varp(mybcp)
## Not run:
# -- plot only span-times between locations a and b --
plot(seq(a,b),mybcp@spn[a:b],col=4,type='l',xlab='loc',ylab='spanTime (s)')
## End(Not run)
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/varp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: varp
> ### Title: Variables' profile plots
> ### Aliases: varp varp,binClstPath-method varp,matrix-method
>
> ### ** Examples
>
> # -- apply EMbC to the example path --
> mybcp <- stbc(expth,info=-1)
[1] 0 -0.0000e+00 4 600
[1] ... Stable clustering
> # -- plot clustering data points --
> varp(mybcp@X)
> # -- plot data points' certainties --
> varp(mybcp@U)
> # -- plot intermediate computations (span-times, distances and headings) in one figure --
> varp(mybcp)
> ## Not run:
> ##D # -- plot only span-times between locations a and b --
> ##D plot(seq(a,b),mybcp@spn[a:b],col=4,type='l',xlab='loc',ylab='spanTime (s)')
> ## End(Not run)
>
>
>
>
>
> dev.off()
null device
1
>