A collection of functions for creating high-level graphics, performing raster-based analysis, processing MODFLOW-based models, subset selection using a genetic algorithm, etc. Used to support packages and scripts written by researchers at the United States Geological Survey (USGS) Idaho National Laboratory (INL) Project Office.
The R package inlmisc is a collection of functions for creating high-level graphics, performing raster-based analysis, processing MODFLOW-based models, etc. Used to support packages and scripts written by researchers at the United States Geological Survey (USGS) Idaho National Laboratory (INL) Project Office.
You can install the stable version from CRAN using the following command:
install.packages("inlmisc", dependencies = TRUE)
Or use devtools to install the development version from GitHub.
devtools::install_github("USGS-R/inlmisc", dependencies = TRUE)
Please consider reporting bugs and asking questions on the Issues page.
This information is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The information has not received final approval by the U.S. Geological Survey (USGS) and is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the information.
Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.
This software is provided "AS IS."
PlotMap function, fix bug introduced by previous fix of raster range calculation.
AddCertificate an 'internal' function.
Add argument checks using checkmate package.
PlotMap function, fix bug in range calculation of raster values by removing
finite = TRUE.
PlotMap function, fix extent of background image, rivers, lakes, and roads using
FindOptimalSubset function, used to identify an optimal subset using a genetic algorithm.
AddPoints function: add option to scale symbol size to radius;
revise calculation of symbol size and legend labels.
PlotMap function, let
r argument accept any object that can be converted to a
In LaTeX preamble: add verbatimbox package; add maketitle format.
PlotMap function, add
simplify argument, used to convert raster to polygons prior to plotting.
Grid2Polygons function: allow
grd argument to be an object of class
transform coordinate reference system (CRS) of
ply argument to match the CRS of the
grd argument; and
zlim argument, a limit on the attribute variable.
ToScientific function, add arguments
...; and rename
lab.type argument to
Code in place for backwards compatibility.
SavePackageDetails functions, add support for gzip file compression.
SavePackageDetails function, fix bug that results in an 'invalid cross-device link' error on some flavor's of R.
SavePackageNames function to
AddCertificate function, used to add a X.509 certificate to your CA bundle.
Make httr a suggested package.
RecreateLibrary function, add
local argument, file paths of files containing builds of packages.
AddGradientLegend function, add
n argument, the desired number of tick-marks to be drawn.
Grid2Polygons function from the Grid2Polygons package.
Total revision of the
ToScientific function, improve default value for
AddGradientLegend function, used to add a continuous color gradient legend strip to a plot.
RecreateLibrary function, used to recreate an existing library on a new installation of R.
FormatPval function, used to format p-values.
Add bm and makecell packages to LaTeX preamble.
PlotGraph function inlclude:
Add option for plotting interval censored data by specifying
type = "i".
Select box-and-whisker plot using
type = "w", was previously
type = "box".
seq.date.by argument changed from
CreateWebMap function, creates a Leaflet map widget using The National Map services.
Tidy help documentation for functions.
ReadModflowBinaryfunction. Argument describes the endian-ness (or byte-order) of the binary file and is required for calls to the
readBinfunction. Thanks to Professor Brian Ripley for identifying this issue.
SummariseBudget function, the
desc argument no longer needs to be specified.
If missing, all data types are summarized.
SummariseBudget function, remove default for
desc argument and add
the auxiliary variable name.
ReadModflowBinary function, enable cell-by-cell budget files to be read when they are not in compact form.
Change legend format for binned point data from
[#, ) to
># to #.
Fix bug that resulted in error when plotting a single point location using the
Add AppVeyor to package.
dynamically adjust vertical plot margins based on the number of lines in the user specified labels.
AddPoints function, remove
draw.legend argument and rename
pos argument to
NULL value for
legend.pos will prevent the legend from being drawn.
Change function name from
PlotCrossSection functions, fix layout so color key dimensions don't change on resize.
PlotMap function, add
A logical that idicates if the graphics device driver should be shut down when the function exits.
AddBubbles function, allow
z argument to be an object of class
AddBubbles function, account for aspect ratio when constructing legend.
AddBubbles function, rename
bg.pos argument to
bg, and set
bg.neg = NULL.
bg argument may now be used to specify circle colors for all
z values, not just positive values.
See help documentation for details.
AddBubbles function, specifying a single numeric value for the
inches arguments results in
a fixed radius being used for all circle symbols.
PlotMap function, account for z-axis limits prior to removing rows and columns having all missing values.
PlotMap function, change default for
scale.loc argument from
the scale bar is no longer drawn by default.
PlotMap function, change
asp argument from 1 to NULL.
Defaults to 1 when data is projected, otherwise, a calculated value based on axes limits is used.
POSIXct2Character, used to convert objects from
Update URL links to HTTP Secure
Generalize CITATION file
Change argument name in
ReadModflowBinary function from
ReadCodeChunk function, reads knitr code chunks into the current session.
Change NEWS file to markdown format.
Remove "misc" folder from ".Rbuildignore", adds the "misc/preamble.tex" file back to the package build.
file argument to
Specifying this argument will start a graphics device driver for producing either a PDF or PNG file.
Width and height of graphics device is no longer calculated when drawing to screen.
Explain the USGS and INL acronyms from the Title in the DESCRIPTION file.
Fix invalid URLs.