[.dtrace {dtrace} | R Documentation |
These functions perform subsetting of density trace objects.
x[i] x[[i]]
x |
An object of class dtrace . |
i |
Indexing information |
The first form of subsetting can be used to produce a dtrace
object containing a subset of the original object.
The second form of subsetting provides access to the internal
components of and individual density estimate. The result is
a list which contains x
and y
components which
give the actual estimates.
A subset of the dtrace
object passed as an argument.
Ross Ihaka
## Estimation and plotting of three densities. ## A demonstration of the formula-based interface. data(iris) d <- dtrace(Petal.Width ~ Species, data = iris) summary(d[1]) plot(d[[2]], type = "l")