Hello,
I've been running BGB on calibrated trees of fossils, and am able to complete the analyses and get tables with results for each model and final comparisons between the paired basic and +j versions of each. However, I cannot get the routines for generating PDFs of the trees to work. Every time I try get the following error message:
> pdffn = "JL_BAYAREALIKE_vs_BAYAREALIKE+J_M3_stratified_v1.pdf"
> pdf(pdffn, width=12, height=24)
> analysis_titletxt ="BioGeoBEARS BAYAREALIKE on JL M3_stratified"
>
> # Setup
> results_object = resBAYAREALIKE
> scriptdir = np(system.file("extdata/a_scripts", package="BioGeoBEARS"))
>
> # States
> res2 = plot_BioGeoBEARS_results(results_object, analysis_titletxt, addl_params=list("j"), plotwhat="text", label.offset=0.45, tipcex=0.7, statecex=0.7, splitcex=0.6, titlecex=0.8, plotsplits=TRUE, cornercoords_loc=scriptdir, include_null_range=TRUE, tr=tr, tipranges=tipranges)
Error in (length(tr_pruningwise$tip.label) + 1):(length(tr_pruningwise$tip.label) + :
argument of length 0
A PDF file with the title listed above is generated, but is corrupted and cannot be opened with either Acrobat or Preview.
Any tips or ideas of how to fix this?
Also os there a command to compile the individual analyses results into data tables such as those provided under the Results tab in the tutorial wiki?
Thanks in advance for help/ advice.