R/plotSamprate.R

plotSamprate <- function (solution, dom) {
  df <- as.data.frame(solution$aggr_strata[solution$aggr_strata$DOM1 == dom,])
#   plot(df$SOLUZ/df$N,
#        ylim = c(0,1),
#        ylab="sampling units / total units",
#        xlab="strata",
# 	   type="h")
  barplot(SOLUZ/N ~ STRATO,data=df, ylab="sampling units / total units",xlab="strata",)
  title(paste("Sampling rate per stratum in domain ",dom,sep=""))
}    

Try the SamplingStrata package in your browser

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

SamplingStrata documentation built on Nov. 16, 2022, 1:08 a.m.