Learn R Programming

EMbC (version 2.0.4)

varp: Variables' profile plots

Description

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

Usage

varp(obj, ...)

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

# S4 method for 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

Run this code
# -- 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)
if (FALSE) {
# -- 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)')
}

Run the code above in your browser using DataLab