R/plot.hcvd.fun1d.R

Defines functions plot.hcvd.fun1d

plot.hcvd.fun1d <-
function(f,main=NULL,sub = NULL, xlab=NULL, ylab=NULL,
                      type="l",las=1,lwd=1,...)
                  {
    class(f) <- "CV.fun"
    kernel <- f$ker
    if(is.null(xlab)) xlab <- "h"
    if(is.null(ylab)) ylab <- "CV(h)" 
    if(is.null(main)){ 
    	    
    	                 main <- "Cross-validation"
    	                }               
    
    plot.default(f$seq_h,f$CV, type="l",las=las,lwd=lwd,xlab=xlab,ylab=ylab,
		       main=main,sub=sub,font.main=2,cex.main=0.9,font.sub=2,cex.sub=0.7,...)

}

Try the Ake package in your browser

Any scripts or data that you put into this service are public.

Ake documentation built on June 13, 2022, 5:07 p.m.