Last data update: 2014.03.03
|
R: Plot the functional data
Plot the functional data
Description
Plots the functional data given in the form which is described in the topic dataf.* .
Usage
plotf(dataf,
main = "Functional data", xlab = "args", ylab = "vals",
colors = c("red", "blue", "green", "black", "orange", "pink"))
Arguments
dataf |
The functional data as in the topic dataf.* .
|
main |
an overall title for the plot: see title
|
xlab |
a title for the x axis: see title
|
ylab |
a title for the y axis: see title
|
colors |
the colors for the classes of the data. The colors are applied to the classes sorted in alphabetical order.
|
See Also
dataf.* for functional data description
Examples
## Not run:
## load the Growth dataset
dataf = dataf.growth()
labels = unlist(dataf$labels)
plotf(dataf,
main = paste("Growth: girls red (", sum(labels == "girl"), "),",
" boys blue (", sum(labels == "boy"), ")", sep=""),
xlab="Year", ylab="Height, cm",
colors = c("blue", "red") # in alphabetical order of class labels
)
## End(Not run)
Results
|