Variation
'plot.loess' <- function( points.x = x, points.y = y, line.thickness = 1.4, line.style = "solid", line.color = "black", line.span = 5/6 ){ cat("\nPlotting Loess Line\n") if(length(points.x) > 1){ panel.loess( x = points.x, y = points.y, lwd = line.thickness, lty = line.style, col = line.color, span = line.span ) }else{ cat("\nNot enought points to plot a Loess line\n") } }
key = list( title = "Legend", text = list( c("Loess Line"), col="black" ), points = list( col = c("black"), pch = c(NA), cex = c(1)*0.75 ), lines = list( col = c("black"), lwd = c(1.4)*0.75, lty = c("solid") ), type = "l", space = "right", cex.title = 1, cex = 0.75 )