A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$db is deprecated
Filename: core/Loader.php
Line Number: 390
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 290
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 164
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 233
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 313
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 284
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 291
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 306
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 318
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 319
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 377
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$session is deprecated
Filename: core/Loader.php
Line Number: 1279
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$table is deprecated
Filename: core/Loader.php
Line Number: 1279
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$form_validation is deprecated
Filename: core/Loader.php
Line Number: 1279
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 15
Function: __construct
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Web::$data is deprecated
Filename: controllers/Web.php
Line Number: 22
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 22
Function: _error_handler
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$table is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$form_validation is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$data is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /websites/html/ctfsdev/CTFSRPackageNew/application/controllers/Web.php
Line: 153
Function: view
File: /websites/html/ctfsdev/CTFSRPackageNew/index.php
Line: 315
Function: require_once
CTFS Tutorials
Source file: http://ctfs.si.edu/ctfsdev/CTFSRPackageNew/files/tutorials/MortalityDBH
Graphing mortality rate vs. dbh
Mortality vs. dbh
GRAPHING MORTALITY RATE VS. DBH
R. CONDIT
Consider a calculation of mortality rate in dbh categories, estimated by counting
survivors among all trees in each group. This is calculated in the program mortality.spp. The purpose here
is simply graphing results for many species into a pdf.
Use R Analytical Tables from any two censuses of the same plot. The example here, the tables are
bci.full5 and bci.full6. The result of mortality.eachspp is a list, including components rate, upper, lower,
and dbhmean.
> mort.data=mortality.eachspp(bci.full5,bci.full6,classbreak=c(10,20,50,100,150,200,300))
> head(mort.data$rate)
> head(mort.data$upper)
> head(mort.data$dbhmean)
To graph a single species (the call to par is simply to make the fonts larger):
> sp= ' alsebl '
> maxmort=max(mort.data$rate[sp,],na.rm=TRUE)
> par(cex.lab=1.5,cex.axis=1.5)
> plot(mort.data$dbhmean[sp,],mort.data$rate[sp,],type= ' l ' ,ylim=c(0,maxmort),ylab=paste(sp, ' mortality ' ),xlab= ' dbh ' )
To graph more than one species, create a function which creates the graph for one species. An
option to change the xrange and yrange of the graph is included. If both are left at NULL, the
graph extends to the maximum mortality and the maximum dbh. The function must include
a check for infinite mortality rates (which happens when all individuals in a dbh category
die).
> mortdbh.graph=function(data,sp,xrange=NULL,yrange=NULL)
+ {
+ y=data$rate[onesp,]
+ aproblem=is.infinite(y)
+ if(is.null(yrange)) yrange=c(0,max(y[!aproblem],na.rm=TRUE))
+ if(is.null(xrange)) xrange=c(0,max(data$dbhmean[sp,],na.rm=TRUE))
+ plot(data$dbhmean[onesp,!aproblem],y[!aproblem],type= ' l ' ,xlim=xrange,ylim=yrange,ylab=paste(sp, ' mortality ' ),xlab= ' dbh ' )
+ }
Try the function for a few species. There is an option in the function par to pause between graphs. The
first example shows 5 species graphs, all with the same axes. The second example creates a pdf for all
species with > 100 individuals, using the output N from the mortality table. (The graphs created are not
shown here.)
> spp=c( ' alsebl ' , ' tet2pa ' , ' beilpe ' , ' pri2co ' , ' tri2tu ' )
> par(ask=TRUE,cex.lab=1.5,cex.axis=1.5)
> for(onesp in spp) mortdbh.graph(data=mort.data,sp=onesp,xrange=c(0,600),yrange=c(0,.04))
> par(ask=FALSE)
> fullN=rowSums(mort.data$N)
> allspp=rownames(subset(mort.data$N,fullN>=200))
> pdf(file= ' allmort.pdf ' ,width=10,height=8,onefile=TRUE)
> for(onesp in allspp) { cat(onesp, ' \n ' ); mortdbh.graph(data=mort.data,sp=onesp,xrange=c(0,600)) }
> graphics.off()