generate_fig4: Generating Figure 4

Description Usage Arguments References Examples

View source: R/generate_fig4.r

Description

This takes the taxa level posterior combinations generated using the combine_posteriors function and generates figure 4 presented within the paper.

Usage

1
generate_fig4(postdir, save_plot = TRUE, interval = 95)

Arguments

postdir

A filepath specifying where the posterior combinations are saved.

save_plot

Logical. If 'TRUE', the plot will be saved as a PDF file within the 'postdir'. Default is 'TRUE'.

interval

A number between 0 and 100 indicating the percentiles of the credible intervals to be plotted and reported. Defaults to 95%

References

Outhwaite et al (in prep) Complexity of biodiversity change revealed through long-term trends of invertebrates, bryophytes and lichens.

Outhwaite, C. L., Powney, G. D., August, T. A., Chandler, R. E., Rorke, S., Pescott, O., … Isaac, N. J. B. (2019). Annual estimates of occupancy for bryophytes, lichens and invertebrates in the UK (1970-2015). NERC Environmental Information Data Centre. https://doi.org/10.5285/0ec7e549-57d4-4e2d-b2d3-2199e1578d84

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

# Run generate_fig4 function
# postdir should be the filepath of where the 4 major group level posteriors
# combinationss are saved.
generate_fig4(postdir = paste0(getwd(), "/Taxa"))


## End(Not run)

CharlieOuthwaite/UKBiodiversity documentation built on Jan. 24, 2020, 12:45 p.m.