Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_models_v1.R
This is an older, test version of
bears_2param_standard_fast
.
1 2 | bears_2param_standard_fast_fortest(trfn = "test.newick",
geogfn = "test.data")
|
trfn |
The filename of the phylogenetic tree, in
NEWICK format
(http://evolution.genetics.washington.edu/phylip/newicktree.html).
Tipnames should match the names in geogfn. See
|
geogfn |
A PHYLIP-style file with geographic range
data (see |
bears_output
A list of outputs.
bears_output$optim_result
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
Felsenstein, Joe. The Newick tree format. http://evolution.genetics.washington.edu/phylip/newicktree.html http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster https://code.google.com/p/lagrange/
Matzke_2012_IBS
ReeSmith2008
Ree2009configurator
SmithRee2010_CPPversion
numstates_from_numareas
,
getranges_from_LagrangePHYLIP
,
read.tree
,
calc_loglike_sp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | test=1
# Get the example files directory
extdata_dir = np(system.file("extdata", package="BioGeoBEARS"))
# tmp hard code:
# extdata_dir = "/Dropbox/_njm/__packages/BioGeoBEARS_setup/inst/extdata/"
# Set the filenames (Hawaiian Psychotria from Ree & Smith 2008)
trfn = np(paste(extdata_dir, "/Psychotria_5.2.newick", sep=""))
tr = read.tree(file=trfn)
geogfn = np(paste(extdata_dir, "/Psychotria_geog.data", sep=""))
# Look at the tree and ranges, for kicks
getranges_from_LagrangePHYLIP(lgdata_fn=geogfn)
tr
## Not run:
# Run the ML search
bears_output = bears_2param_standard_fast_fortest(trfn=trfn, geogfn=geogfn)
bears_output
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.