## Not run:
# data(tecator)
# xx<-tecator$absorp
# xx1<-fdata.deriv(xx,1)
# lx<-list(xx=xx,xx=xx1)
# # Fraiman-Muniz Depth
# par.df<-list(scale =TRUE)
# out.FM1p=depth.FMp(lx,trim=0.1,draw=TRUE, par.dfunc = par.df)
# out.FM2p=depth.FMp(lx,trim=0.1,dfunc="mdepth.LD",
# par.dfunc = par.df, draw=TRUE)
#
# # Random Project Depth
# out.RP1p=depth.RPp(lx,trim=0.1,dfunc="mdepth.TD",
# draw=TRUE,par.dfunc = par.df)
# out.RP2p=depth.RPp(lx,trim=0.1,dfunc="mdepth.LD",
# draw=TRUE,par.dfunc = par.df)
#
# #Modal Depth
# out.mode1p=depth.modep(lx,trim=0.1,draw=T,scale=T)
# out.mode2p=depth.modep(lx,trim=0.1,method="manhattan",
# draw=T,scale=T)
#
# par(mfrow=c(2,3))
# plot(out.FM1p$dep,out.FM2p$dep)
# plot(out.RP1p$dep,out.RP2p$dep)
# plot(out.mode1p$dep,out.mode2p$dep)
# plot(out.FM1p$dep,out.RP1p$dep)
# plot(out.RP1p$dep,out.mode1p$dep)
# plot(out.FM1p$dep,out.mode1p$dep)
# ## End(Not run)
Run the code above in your browser using DataLab