View source: R/surveyEfficPlot.r
surveyEfficPlot | R Documentation |
uses the output of nefsc.analysis or dfo.rv.analysis where strata.efficiencies=T, to make a plot of the variance efficiencies based on the comparison of stratified random design to a simple random survey design. Based on Smith and Gavaris 1993.
surveyEfficPlot(x, fp = project.figuredirectory("bio.lobster"), fname)
x |
:the output file from nefsc.analysis or dfo.rv.analysis where p$strata.efficiencies=T |
fp |
: file path for saving |
fn |
: file name, needs to include .pdf as this is currently only setup to make pdf files. |
makes a plot of survey efficiencies
Adam Cook, Adam.Cook@dfo-mpo.gc.ca
require(bio.lobster)
p$reweight.strata = T #this subsets
p$years.to.estimate = c(1968:2015)
p$length.based = T
p$size.class= c(82,300)
p$by.sex = T
p$sex = c(1,2) # male female berried c(1,2,3)
p$bootstrapped.ci=T
p$strata.files.return=F
p$strata.efficiencies=T
p$clusters = c( rep( "localhost", 7) )
p$season =c('spring')# p$series =c('spring');p$series =c('fall')
p$define.by.polygons = F
p$lobster.subunits=F
p$area = 'LFA41'
p = make.list(list(yrs=p$years.to.estimate),Y=p)
aout= nefsc.analysis(DS='stratified.estimates.redo',p=p)
surveyEfficPlot(aout,'nefscSpringLFA41.pdf')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.