Learn R Programming

ddalpha (version 1.3.11)

plot.ddalphaf: Plots for the "ddalphaf" Class

Description

plot.functional -- plots the functional data used by classifier

depth.contours.ddalpha -- builds the data depth contours for multiclass 2-dimensional data using the trained classifier. draw.ddplot -- draws the DD-plot of the existing DD\(\alpha\)-classifier.

Usage

# S3 method for ddalphaf
plot(x, type = c("functional.data", "ddplot", "depth.contours"), ...)

Arguments

x

functional DD\(\alpha\)-classifier (obtained by ddalphaf.train).

additional parameters passed to the depth functions and to plot

See Also

depth.

depth.contours

depth.graph

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
dataf = dataf.growth()
ddalphaf = ddalphaf.train (dataf$dataf, dataf$labels, 
                            classifier.type = "ddalpha", maxNumIntervals = 2)

# plot the functional data
plot(ddalphaf)

# plot depth contours and separation in the transformed space 
# (possible only if maxNumIntervals = 2)
plot(ddalphaf, type = "depth.contours")

# plot the DD-plot
plot(ddalphaf, type = "ddplot")

# }

Run the code above in your browser using DataLab