Giter Site home page Giter Site logo

herblabel's Introduction

Welcome to the Homepage of R Package herblabel

What is it?

It is a R package for creating herbarium labels, based on Darwin Core Template. Including the following functionalities:

  1. Parsing scientific names, and filling the relevant fields, including: FAMILY, GENUS, SPECIES etc.

  2. Checking the spelling based on The Plant List Database, Florae Reipublicae Popularis Sinicae (FRPS), Flora of China.

How to Install:

herblabel is available on R-forge, and you can use the following command to install:

install.packages("herblabel", repos="http://R-Forge.R-project.org")

This packages depends on "openxlsx"

install.packages("openxlsx")

Usually the package "Rcpp" which "openxlsx" depends on should be installed automatically. If not, please type to following command to install Rcpp:

install.packages("Rcpp")

The Rtools tool chain should also be installed and well configured. "https://cran.r-project.org/bin/windows/Rtools/"

For more information, please refer to (in Chinese): http://blog.sciencenet.cn/blog-255662-849868.html

How to use:

  1. Generating herbarium labels

    library(openxlsx)
    library(herblabel)
    path <- system.file("extdata", "DARWIN_CORE_HERBARIUM_RECORDS.xlsx", 
                        package = "herblabel")
    dat <- read.xlsx(path)
    herbarium_label(dat, theme = "KFBG", outfile = "herbarium_labels_KFBG.rtf")  ### KFBG Style
    herbarium_label(dat, theme = "PE",   outfile = "herbarium_labels_PE.rtf")    ### PE Style
    herbarium_label(dat, theme = "KUN",  outfile = "herbarium_labels_KUN.rtf")   ### KUN Style
    herbarium_label(dat, theme = "HU",   outfile = "herbarium_labels_HU.rtf")    ### Harvard University
    herbarium_label(dat, spellcheck = FALSE, outfile = "herbarium_labels_no_checking.rtf")
  2. Annotation Labels

    library(herblabel)
    library(openxlsx)
    path <- system.file("extdata", "ANNOTATION_TEMPLATE.xlsx", 
                       package = "herblabel")
    dat <- read.xlsx(path)
    annotation_label(dat)

The R script "run_herblabel" helps you to generate herbarium labels by a simple click. See https://github.com/helixcn/run_herblabel

Citation:

Jinlong Zhang, Huiling Zhu, Jingang Liu, Gunter A. Fischer. (2016). Principles behind designing herbarium specimen labels and the R package 'herblabel'. Biodiversity Science, 24(12): 1345-1352 (DOI: 10.17520/biods.2016230)

Please feel free to send an email to Jinlong Zhang [email protected] if you have any questions.

herblabel's People

Contributors

helixcn avatar

Watchers

James Cloos avatar

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.