R/plotdata.R

Defines functions plotdata

Documented in plotdata

#' Plot data from an NWC source.
#'
#' This function builds a request and returns the the data in question.
#'
#' @param Downloaded_Data The downloaded data to be plotted.
#' @return The plot.
#' @author David Blodgett \email{dblodgett@usgs.gov}
#' @importFrom dataRetrieval readNWISdv
#' @import ggplot2
#' @export
#' @examples
#' data<-getNWCData(huc="031601030306")
plotdata<-function(Downloaded_Data) {
  data2 = subset(Downloaded_Data, data >= 0)
  plot(data2)
}
dblodgett-usgs/NWCEd documentation built on Nov. 29, 2020, 12:20 a.m.