R/eplot.R

Defines functions eplot

Documented in eplot

eplot <-
function(data, element, panel=NULL, groups=NULL, ...) {
  mybg <- trellis.par.get('strip.background')
  mybg$col <- 'white'
  trellis.par.set('strip.background', mybg)
  class(data) <- 'data.frame'
  tmp.depth <- depths(data$depth, data$name)[,1]
  variable <- data[,which(names(data)==element)]
  if (is.null(panel)) {panel.variable <- data$Profile} else {panel.variable <- panel}
  if (is.null(groups)==TRUE) {
    xyplot(tmp.depth~variable|panel.variable, ...)
  } else {
    xyplot(tmp.depth~variable|panel.variable, groups=groups, ...)
  }
}

Try the soilprofile package in your browser

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

soilprofile documentation built on May 29, 2017, 10:50 p.m.