Description
Vegetation Imaging Spectroscopy Analyzer.
Description
Provides easy-to-use tools for data analysis and visualization for hyperspectral remote sensing (also known as imaging spectroscopy), with a particular focus on vegetation hyperspectral data analysis. It consists of a set of functions, ranging from the organization of hyperspectral data in the proper data structure for spectral feature selection, calculation of vegetation index, multivariate analysis, as well as to the visualization of spectra and results of analysis in the 'ggplot2' style.
README.md
visa
This R package is to facilitate Vegetation Imaging Spectroscopy Analysis (VISA). For more details of this package, you can browseVignettes("visa")
.
Installation
install the released version from CRAN:
# install.packages() # does not work currently
You might encounter problem of package dependencies, such as some functions depend on ggplot2
, ggpmisc
. In such cases, you would have to install the all the dependencies.
install the dev-version from GitHub:
if (!require("devtools")) install.packages("devtools")
# devtools::install_github("kang-yu/visa") # install without vignettes
devtools::install_github("kang-yu/visa", build_opts = c("--no-resave-data", "--no-manual"))
You might encounter this problem of install_github(), and in this case, you could try update the {remotes} devtools::install_github("r-lib/remotes")
.
Usage
library(visa)
data(NSpec.DF)
x <- NSpec.DF$N # nitrogen
S <- NSpec.DF$spectra[, seq(1, ncol(NSpec.DF$spectra), 10)] # resampled to 10 nm steps
cm.nsr(S, x, cm.plot = TRUE)
Bug report
You can report your issues of using visa here. Don't know how to report a bug? Check RStudio's Instructions on Writing Good Bug Reports.
You might find useful information by checking the issues reported by others.