mrfDepth (version 1.0.12)

fheatmap: Creates MFOD heatmap

Description

Creates the heatmap in paper either for depth or for distances.

Usage

fheatmap(rowValues,cellValues,type,scalename="")

Arguments

rowValues

a

cellValues

a

type

One of "depth" or "distance". Determines whether a depth or a distance heatmap is made.

scalename

a

Details

fg

References

Hubert M., Rousseeuw P.J., Segaert P. (2015). Multivariate functional outlier detection (with rejoinder). Statistical Methods & Applications, 24, 177--202.

Examples

Run this code
# NOT RUN {
library("ggplot2")
data(octane)
Result <- mfd(octane, diagnostic = TRUE, type ="sprojdepth")
Plot <- fheatmap(rowValues = Result$MFDdepthZ,
                 cellValues = Result$crossdepthZ,
                 type = "depth",
                 scalename ="SPD")
                 
Result <- fOutl(octane, diagnostic = TRUE, type ="fAO")
Plot <- fheatmap(rowValues = Result$fOutlyingnessZ,
                 cellValues = Result$crossDistsZ,
                 type = "distance",
                 scalename ="AO")                 
                 
#Customize the look of the plot
#Plot <- Plot + xlab("time point")
#Plot
# }

Run the code above in your browser using DataCamp Workspace