R/geom_psdpoints.R

Defines functions geom_psdpts

Documented in geom_psdpts

#' A small helper function for conditionally plotting points
#'
#' For internal use inside `ggpsd()`; if points argument set to TRUE (the default)
#' points will be added to the log-linear plot (in addition to the log-linear
#' line inerpolation)
#'
#' @param pts Logical value
#'
#' @return
#'

geom_psdpts <- function(pts = points){
  if(pts == TRUE){
    list(
      ggplot2::geom_point()
    )
  }
}
evanmascitti/soiltestr documentation built on Oct. 6, 2022, 5:32 p.m.