R/plotProcessedData.r

Defines functions plotProcessedDataWithTopo plotProcessedData

Documented in plotProcessedData plotProcessedDataWithTopo

#' @rdname plot
#' @aliases plot
#' @export
plotProcessedData <- function(x,
                              xlab = 'Length [m]',
                              ylab = 'Depth [m]',
                              main = paste(x@title, 'without topography'),
                              ...) {
  plot(
    x@processedData@points$dist,
    x@processedData@points$depth,
    xlab = xlab,
    ylab = ylab,
    main = main,
    ...
  )
}

#' @rdname plot
#' @aliases plot
#' @export
plotProcessedDataWithTopo <-
  function(x,
           xlab = 'Length [m]',
           ylab = 'Height [m]',
           main = paste(x@title, 'with topography'),
           ...) {
    plot(
      x@processedData@pointsWithTopo$dist,
      x@processedData@pointsWithTopo$height,
      xlab = xlab,
      ylab = ylab,
      main = main,
      ...
    )
  }

Try the geoelectrics package in your browser

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

geoelectrics documentation built on Feb. 16, 2023, 8:06 p.m.