Description Usage Arguments See Also Examples
This function plots observations of irregular functional data on their domain.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
x |
An object of class |
y |
Missing. |
obs |
A vector of numerics giving the observations to plot. Defaults to all observations in
|
type |
The type of plot. Defaults to |
pch |
The point type. Defaults to |
col |
The color of the functions. Defaults to the |
xlab, ylab |
The titles for x- and y-axis. Defaults to |
xlim, ylim |
The limits for x- and y-axis. Defaults to the total range of the data that is to
plot. See |
log |
A character string, specifying the axis that is to be logarithmic. Can be |
add |
Logical. If |
... |
Additional arguments to |
plot.funData
, irregFunData
,
plot
1 2 3 4 5 6 7 8 9 10 11 | oldpar <- par(no.readonly = TRUE)
# Generate data
argvals <- seq(0,2*pi,0.01)
ind <- replicate(5, sort(sample(1:length(argvals), sample(5:10,1))))
object <- irregFunData(argvals = lapply(ind, function(i){argvals[i]}),
X = lapply(ind, function(i){sample(1:10,1) / 10 * argvals[i]^2}))
plot(object, main = "Irregular functional data")
par(oldpar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.