corner_coords(tr, coords_fun = "plot_phylo3_nodecoords", tmplocation = "manual")
phylo
format.system.file
command in the examples,
below. The directory location containing the R script
plot_phylo3_nodecoords.R
. This function, modified
from the ape
function
plot.phylo
, cannot be included
directly in the R package as it contains C code that does
not pass CRAN's R CMD check. The default,
cornercoords_loc="manual", will not allow split states to
be plot. The R script plot_phylo3_nodecoords.R
is
located in the BioGeoBEARS extension data directory,
extdata/a_scripts
. You should be able to get the
full path with
list.files(system.file("extdata/a_scripts",
package="BioGeoBEARS"), full.names=TRUE)
.corners_list
extdata/a_scripts
) directory of
the package. The defaults work on the developer's
machine, other users may have to e.g. change "manual" to
tmplocation
, where tmplocation
is specified
as in the example.
Matzke_2012_IBS
phylo
, get_nodenums
# Set location like this if you don't have plot_phylo3_nodecoords
# hardcoded/sourced elsehwhere
# tmplocation = np(system.file("extdata/a_scripts", package="BioGeoBEARS"))
#
## Not run:
# extdata_dir = np(system.file("extdata", package="BioGeoBEARS"))
# trfn = np(paste(extdata_dir, "/Psychotria_5.2.newick", sep=""))
# tr = read.tree(trfn)
# tmplocation = np(system.file("extdata/a_scripts", package="BioGeoBEARS"))
# corner_coords(tr, coords_fun="plot_phylo3_nodecoords", tmplocation=tmplocation)
# ## End(Not run)
Run the code above in your browser using DataLab