plotOC: plot Original Curves

Description Usage Arguments Examples

View source: R/plot.R

Description

This function plots the observed curves, before any action of smoothing or interpolation.

Usage

1
2
  plotOC(time = 1:nrow(curves), curves, xlab = "time",
    ylab = "value", main = "Original curves")

Arguments

time

a vector containing the observation time for the curves. If absent the time param will be set at the vector 1:nrow(curves)

curves

the observations matrix. Each column of this matrix corresponds to one observed curve, and contains the value of the curve at discrete time points.

xlab

label of the horizontal axis

ylab

label of the vertical axis

main

the title of the graphic

Examples

1
2
3
4
data(growth)
curves=matrix(data=cbind(growth$hgtm,growth$hgtf),ncol=93)
time=growth$age
plotOC(time,curves)

Example output

Loading required package: fda
Loading required package: splines
Loading required package: Matrix

Attaching package: 'fda'

The following object is masked from 'package:graphics':

    matplot

Funclustering documentation built on Nov. 25, 2018, 1:04 a.m.