Variables' profile plots
varp
easy plot of input, output and intermediate
variables of a binClstPath_instance.
varp(obj, ...) ## S4 method for signature 'binClstPath' varp(obj, lims = NULL, ...) ## S4 method for signature 'matrix' varp(obj, lims = NULL, ...)
obj |
Either a matrix or a binClstPath_instance. |
... |
Parameter |
lims |
A numeric vector with lower and upper bounds to limit the plot. |
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).
# -- 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.