importFrom("grDevices", "extendrange")
importFrom(lattice, barchart, panel.barchart)
importFrom(latticeExtra, layer)
import(lmom)
importFrom(lmomRFA, regsamlmu, regfit, regquant, sitequant)
import(dygraphs)
import(xts)
importFrom(zoo, coredata, is.zoo, zoo)
importFrom("graphics", "abline", "axis", "grid", "legend", "lines", "par",
           "plot", "points", "polygon", "title", "mtext", "strheight",
           "strwidth", "text")
importFrom("stats", "aggregate", "approx", "coef", "filter", "lm", "qnorm",
           "quantile", "reorder", "time", "ks.test", "na.omit", "embed",
           "na.exclude", "weighted.mean")
importFrom("utils", "read.table", "tail", "head", "str")
importFrom("plyr", "rbind.fill.matrix")    # used in apply.seasonal()



export(createlfobj,
  recession,
  seglenplot,
  BFI,
  bfplot,
  fdc,
  MAM,
  meanflow,
  Q95,
  Qxx,
  Q70,
  Q90,
  readlfdata,
  sbplot,
  streamdef,
  streamdefplot,
  tyears,
  rfa,
  rfaplot,
  lfnacheck,
  lfnainterpolate,
  dmcurve,
  seasratio,
  seasindex,
setlfunit,
hydrograph,
multistationsreport,
recessionplot,

evfit,
evquantile,
trace_value,
rpline,
pel_ev,
qua_ev,
cdf_ev,
check_distribution,
gringorten,
baseflow,
ma,
as.xts.lfobj,
vary_threshold,
pool_sp,
pool_ma,
pool_ic,
pool_it,
find_droughts,
apply.seasonal,
water_year,
hyear_start,
"hyear_start<-",
tyearsS,
flowunit,
"flowunit<-",
fill_na,
as.lfobj,
is.lfobj,
ev_return_period
)

 S3method(hyear_start, data.frame)
 S3method(hyear_start, xts)
 S3method("hyear_start<-", xts)
 S3method("hyear_start<-", lfobj)

 S3method(as.lfobj, zoo)
 S3method(as.lfobj, xts)

 S3method(createlfobj, ts)
 S3method(createlfobj, lfobj)
 S3method(createlfobj, data.frame)
 S3method(summary, lfobj)
 S3method(plot, lfobj)
 S3method("[", lfobj)

 S3method(flowunit, lfobj)
 S3method(flowunit, xts)
 S3method("flowunit<-", lfobj)
 S3method("flowunit<-", xts)

 S3method(print, evfit)
 S3method(summary, evfit)
 S3method(plot, evfit)

 S3method(print, deficit)
 S3method(summary, deficit)
 S3method(plot, deficit)

 S3method(print, summaryDrought)
 S3method(as.xts, lfobj)
