Description Details Author(s) References Examples
We provide tools to (1) visualize multivariate functions and density estimates with level set trees, (2) visualize level sets with shape trees, (3) visualize multivariate data with tail trees, (4) visualize scales of multivariate density estimates with mode graphs and branching maps, and (5) visualize anisotropic spread with 2D volume functions and 2D probability content functions. Level set trees visualize mode structure, shape trees visualize shapes of level sets of unimodal densities, and tail trees visualize connected data sets. The kernel estimator is implemented but the package may also be applied for visualizing other density estimates.
Package: | denpro |
Version: | 0.9.2 |
Date: | 2015-05-12 |
Depends: | |
License: | GPL(>=2) |
URL: | http://www.jussiklemela.com/denpro/ |
Packaged: | Mon Jun 15 16:34:17 2015; jsk |
Built: | R 3.2.0; i486-pc-linux-gnu; 2013-06-12 16:34:35; unix |
The main function:
*leafsfirst
Functions to plot a level set tree, shape tree, or tail tree:
*plotvolu *plotbary *plottree *treedisc *prunemodes
Visualization of scales of estimates:
* lstseq.kern * modegraph * plotmodet * branchmap * plotbranchmap * scaletable * exmap * plotexmap * hgrid :
Visualization of anisotropic spread (2D volume function and 2D probability content function):
* stseq * shape2d * plotvolu2d * plotdelineator
Other utilities:
* pcf.kern * tree.segme * lst2xy * graph.matrix * plotbary.slide * Calculation of level set trees with "DynaDecompose" algorithm and with naive algorithm o profkern o profhist o profgene o profeval * locofmax * modecent * excmas
Other visualization tools:
* draw.pcf * slicing * draw.levset * paracoor * pp.plot * qq.plot * plot.kernscale * dist.func * paraclus
Miscallenous:
* pcf.func * sim.data * dend2parent * explo.compa * nn.radit * nn.likeset * rotation * liketree * leafsfirst.visu * plottwin
Index (alphaphetical):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | branchmap Calculates a branching map from a sequence of
level set trees
draw.levset Plots a level set of a 2D function
draw.pcf Prepares the plotting of a 2D or 1D piecewise
constant function
excmas Calculates the excess masses associated with
the nodes of a level set tree
exmap Calculates a scale of excess mass profiles
hgrid Returns a grid of smoothing parameter values
leafsfirst Calculates a level set tree, shape tree, or
tail tree
locofmax Calculates the location of the maximum of a
function
lstseq.kern Calculates a scale of kernel estimates
modecent Returns locations of modes of a density
estimate
modegraph Calculates a mode graph from a scale of
estimates
paracoor Makes a parallel coordinate plot
pcf.func Calculates a piecewise constant function for
some illustrative purposes
pcf.kern Calculates a multivariate kernel estimate
plotbary Makes a barycenter plot of a level set tree, a
location plot of a shape tree, or a tail tree
plot of a tail tree
plotbranchmap Plots a branching map
plotexmap Plots a scale of excess mass profiles
plotmodet Plots a mode graph
plottree Makes a tree plot of a level set tree, of a
shape tree, or of a tail tree
plotvolu Makes a volume plot of a level set tree, a
shape plot of a shape tree, or a tail frequency
plot of a tail tree
plotvolu2d Makes a perspective plot of a 2D volume
function or a 2D probability content function
profgene Calculates the level set tree of a
rectangularwise constant function
profhist Calculates the level set tree of a histogram
profkern Calculates a level set tree of a kernel
estimate
prunemodes Prunes modes away from a level set tree or a
shape tree
scaletable Implements the scale and shape table
shape2d Returns a 2D volume function or 2D probability
content function
sim.data Generates data for illustrative purposes
slicing Returns a one- or two-dimensional slice of a
multivariate function
stseq Calculates a sequence of radius functions from
a sequence of level sets
treedisc Prunes a level set tree or a tail tree
tree.segme Returns the segmentation of the nodes of
a visualization tree
|
Jussi Klemela <jussi.klemela@gmail.com>
Maintainer: Jussi Klemela <jussi.klemela@gmail.com>
http://www.rni.helsinki.fi/~jsk/denpro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # level set tree
dendat<-sim.data(n=200,type="mulmod") # data
pcf<-pcf.kern(dendat,h=1,N=c(32,32)) # kernel estimate
lst<-leafsfirst(pcf) # level set tree
td<-treedisc(lst,pcf,ngrid=60) # pruned level set tree
plotvolu(td) # volume plot
plotbary(td) # barycenter plot
# shape tree
dendat<-sim.data(n=200,type="cross") # data
pcf<-pcf.kern(dendat,h=1,N=c(32,32)) # kernel estimate
st<-leafsfirst(pcf,propo=0.01) # shape tree, 1 per cent level set
tdst<-treedisc(st,pcf,ngrid=60) # pruned shape tree
plotvolu(tdst) # radius plot
plotbary(tdst) # location plot
# tail tree
dendat<-sim.data(n=200,type="cross") # data
tt<-leafsfirst(dendat=dendat,rho=0.65) # tail tree
plotbary(tt) # tail tree plot
plotvolu(tt) # tail frequency plot
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.