Giter Site home page Giter Site logo

ltrr-arizona-edu / burnr Goto Github PK

View Code? Open in Web Editor NEW
15.0 9.0 8.0 7.3 MB

đŸ”„ Forest fire history analysis in R.

Home Page: https://ltrr-arizona-edu.github.io/burnr/

R 100.00%
scientific ecology dendrochronology statistics plot r forestfire cran citation

burnr's Introduction

burnr

CRAN_Status_Badge Coverage Status R-CMD-check downloads DOI

Basic tools to analyze forest fire history data (e.g. FHX) in R. This is designed for power users and projects with special needs.

Installation

You can install the released version of burnr from CRAN with:

install.packages("burnr")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("ltrr-arizona-edu/burnr")

Example

This is a basic example which shows you how to solve a common problem:

library(burnr)

# This gives you a basic plot. There are more advanced options. For example, we can color our plot by sample species.

data(lgr2_meta)

plot(lgr2,
  color_group = lgr2_meta$SpeciesID,
  color_id = lgr2_meta$TreeID,
  plot_legend = TRUE
)

Support

Documentation is included in the code. If you’re new to burnr, our 2018 paper in Dendrochronologia is a nice survey of the package with many examples. We also have instructional vignettes on the project website, https://ltrr-arizona-edu.github.io/burnr/. And you can work through examples, with included data, in an R project hosted by @chguiterman on GitHub: https://github.com/chguiterman/burnr_demo. We’re working to enhance our instruction and add to these demos on the burnr website, so please send us requests for new tips and tricks, or create your own and share with us!

Citation

Please cite the original burnr paper if you use it in your research:

Malevich, Steven B., Christopher H. Guiterman, and Ellis Q. Margolis (2018) Burnr: Fire History Analysis and Graphics in R. Dendrochronologia 49: 9–15. DOI: 10.1016/j.dendro.2018.02.005.

Citations help us to identify user needs and justify additional time developing and maintaining burnr.

Development

Please file bugs in the bug tracker.

Want to contribute? Great! We’re following Hadley’s packaging workflow and style guide. Fork away.

If you’re not a developer, don’t worry! We also welcome help with documentation and tutorials.

burnr's People

Contributors

brews avatar chguiterman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

burnr's Issues

Style clashes with S3 classes

We need refractoring and renaming of classes, functions and a few variables so that it doesn't class so harsh with our S3 class(es). I am thinking of moving from Google Styles Guide to Hadley Wickhams.

This will likely go down as I move things into package format.

read_fhx error when first year is a scar

This is partially a limitation in how FHX data is handled.

If the first year of a series is a scar (and I suspect, same goes for injury), read_fhx has an error.

Ellis Margolis found this bug on 2015-10-29.

Color fire history plots by species?

Is there some way to bring in species data (associated with an ID in an fhx object) then use the species data to color the default fire history plot?

Need data and not files to be packaged

Right now our example data is packaged as an external file. We need this FHX file and it's associated species file need to be loaded when the user runs data().

Also, we need one additional example dataset other than LGR2. Maybe PGM?

Need to register S3 extensions

We get the error:

Found the following apparent S3 methods exported but not registered:
  plot.fhx sort.fhx
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.

Need to package software

We actually need to package this software with unit tests and everything. Even if we don't put it into CRAN, It will be just like Christmas!

Bad rugs when using plotting facets.

Rugs and facets do not work well together (if at all). I imagine this has to do with how we hacked our way around spacing our rugs with single plots...

Anyways, we also have a problem with needing to define a independent rug for each facet subplot. i.e. facets do not share the same rug.

Update README to remove warning about breaking backwards compatibility.

I promise to only break backwards compatibility on Major releases.

I promise to only break backwards compatibility on Major releases.

I promise to only break backwards compatibility on Major releases.

I promise to only break backwards compatibility on Major releases.

I promise to only break backwards compatibility on Major releases.

(after version 1.0)

Concat function for fhx is very very slow.

Concatenating ("+"ing) multiple FHX files is very slow. This is especially a problem when working with many large files. Vectorize it or maybe write it in C?

This might be a good excuse to revisit how we structure FHX data internally.

sort.fhx() needs a default behavior.

At the moment concatenate()'s use of sort.fhx() creates an error because no decreasing argument is passed in concatenate().

Props to Ellis for finding this.

Make injuries optional in composite.

Some people may not want injuries to be considered when calculating fire event years in composite. Make this optional with a function argument.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.