Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

varp

Variables' profile plots


Description

varp easy plot of input, output and intermediate variables of a binClstPath_instance.

Usage

varp(obj, ...)

## S4 method for signature 'binClstPath'
varp(obj, lims = NULL, ...)

## S4 method for signature 'matrix'
varp(obj, lims = NULL, ...)

Arguments

obj

Either a matrix or a binClstPath_instance.

...

Parameter lims is optional.

lims

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)

EMbC

Expectation-Maximization Binary Clustering

v2.0.3
GPL-3 | file LICENSE
Authors
Joan Garriga, John R.B. Palmer, Aitana Oltra, Frederic Bartumeus
Initial release
2019-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.