Learn R Programming

⚠️There's a newer version (0.5.5) of this package.Take me there.

inlmisc

Description

The R package inlmisc is a collection of functions for creating high-level graphics, performing raster-based analysis, processing MODFLOW-based models, selecting subsets using a genetic algorithm, creating interactive web maps, accessing color palettes, etc. Used to support packages and scripts written by researchers at the U.S. Geological Survey (USGS) Idaho National Laboratory (INL) Project Office.

Installation

The current release is available on CRAN, which you can install using the following command:

install.packages("inlmisc", dependencies = TRUE)

A recent version of Pandoc (>= 1.12.3) is also required to run particular examples in the help documentation—RStudio includes this so you do not need to download Pandoc if working in a RStudio IDE. The webshot package is imported from and has as a dependency the external program PhantomJS, which may be installed using the command:

webshot::webshotinstall_phantomjs()

For creating word clouds, the OptiPNG program is recommended and needs to be accessible through the command window. Finally, to install the development version of inlmisc, you need to clone the repository and build from source, or run:

if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("USGS-R/inlmisc", dependencies = TRUE)

Usage

Examples are given in the package help pages. To access this documentation, run:

library("inlmisc")
help(package = "inlmisc")

Author

Jason C. Fisher (ORCID iD 0000-0001-9032-8912)

Point of Contact

Jason C. Fisher (jfisher@usgs.gov)

Suggested Citation

To cite inlmisc in publications, please use:

Fisher, J.C., 2020, inlmisc—Miscellaneous functions for the U.S. Geological Survey Idaho National Laboratory Project Office: U.S. Geological Survey software release, R package, Reston, Va.

Contributing

We welcome your contributions and suggestions for how to make these materials more useful to the community. Please feel free to comment on the issue tracker or open a merge request to contribute.

Code of Conduct

All contributions to- and interactions surrounding- this project will abide by the USGS Code of Scientific Conduct.

Disclaimer

This software has been approved for release by the U.S. Geological Survey (USGS). Although the software has been subjected to rigorous review, the USGS reserves the right to update the software as needed pursuant to further analysis and review. No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. Furthermore, the software is released on condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from its authorized or unauthorized use.

License Information

This software is a product of the U.S. Geological Survey (USGS), an agency of the United States Department of Interior, which is part of the U.S. Government.

Cost

This software is freely distributed. There is no fee to download and (or) use this software.

License

Users do not need a license or permission from the USGS to use this software. Users can download and install as many copies of the software as they need. See Exceptions below.

Public domain

As a work of the United States Government, this USGS product is in the public domain within the United States. You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission. Additionally, USGS waives copyright and related rights in the work worldwide through CC0 1.0 Universal Public Domain Dedication.

Exceptions

This project may have numerous dependencies from other open-source software projects. The re-use and distribution of those software packages may be subject to the licenses of each of those dependencies.

Support

The Idaho National Laboratory Project Office of the USGS supports the development and maintenance of inlmisc. Resources are available primarily for maintenance and responding to user questions. Priorities on the development of new features are determined by the inlmisc development team.

Disclaimer

This software has been approved for release by the U.S. Geological Survey (USGS). Although the software has been subjected to rigorous review, the USGS reserves the right to update the software as needed pursuant to further analysis and review. No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. Furthermore, the software is released on condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from its authorized or unauthorized use.

Copy Link

Version

Install

install.packages('inlmisc')

Monthly Downloads

109

Version

0.5.2

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Jason Fisher

Last Published

September 12th, 2020

Functions in inlmisc (0.5.2)

AddScaleBar

Add Scale Bar to Plot
AddPoints

Add Points to Plot
AddGradientLegend

Add Color Gradient Legend to Plot
BumpDisconnectCells

Adjust Vertically Disconnected Cells
AddColorKey

Add Color Key to Plot
AddIntervals

Add Interval Symbols to Plot
BuildVignettes

Build Package Vignettes
AddInsetMap

Add Inset Map to Plot
ExportRasterStack

Export a Raster Stack
AddNorthArrow

Add North Arrow to Plot
AddWebMapElements

Add Elements to Web Map
inlmisc-deprecated

Deprecated Functions in the inlmisc Package
FindPolyNodes

Find Polygon Nodes
CreateWebMap

Create a Web Map Using TNM Services
MakeWordCloud

Create a Word Cloud from a Frequency Table of Words
POSIXct2Character

Convert from POSIXct to Character
FindOptimalSubset

Find Optimal Subset Using a GA
BumpRiverStage

Adjust Implausible River Stage
PlotMap

Plot Map
PlotCrossSection

Plot Cross Section
ExtractAlongTransect

Extract Raster Values Along a Transect Line
GetRegionOfInterest

Get Region of Interest
IsColor

Check whether a character string is a valid color specification.
Grid2Polygons

Convert Spatial Grids to Polygons
IsPackageInstalled

Check whether Package is Installed
GetColors

Get Palette Colors
RecreateLibrary

Recreate R Library
PlotGraph

Plot Graph
PrintFigure

Print as LaTeX Figure
FormatPval

Format P Values
PrintPackageHelp

Print Package Help Documentation
RmSmallCellChunks

Remove Small Cell Chunks
ReplaceInTemplate

Replace Values in a Template Text
GetInsetLocation

Get Location for Inset in Plot
GetDaysInMonth

Get Number of Days in a Year and Month
PrintTable

Print as LaTeX Table
EncodeChromosome

Encode and Decode an Integer Chromosome
ReadCodeChunks

Read Knitr Code Chunks
SetHinge

Set Hinge Location in Color Palette
usgs_article

USGS Article Format
ToScientific

Format for Scientific Notation
ReadModflowBinary

Read MODFLOW Binary File
SetPolygons

Overlay Multi-Polygon Objects
SummariseBudget

Summarize MODFLOW Water Budget