Skip to content

Releases: USGS-R/inlmisc

inlmisc 0.5.5

24 Jan 21:21
6784ad5
Compare
Choose a tag to compare

inlmisc 0.5.5

  • Stop running example in RecreateLibrary function.

inlmisc 0.5.4

  • Explicitly set stringsAsFactors option in all calls to functions data.frame and as.data.frame.

inlmisc 0.5.3

  • Fix inkscape command in render-tables.R script.

  • Fix bug in SetPolygons that resulted in error.

  • Fix invalid URL's.

inlmisc 0.5.2

  • Fixed invalid URL's.

inlmisc 0.5.1

  • Import wordcloud2 and webshot packages, and suggest png package. The webshot package has as a dependency the external program PhantomJS.

  • Add CreateWordCloud, used to create a word cloud from a frequency table of words, and plot to a PNG file.

inlmisc 0.5.0

22 Jul 16:27
10cd354
Compare
Choose a tag to compare
  • Add top-level README.Rmd file.
  • Remove LICENSE.note file from package, and replace witha repo-only LICENSE.md file.
  • Add DISCLAIMER.md file.
  • In LaTeX preamble, include new solution for printing fancy header on all pages.
  • In AddInsetMap, add feature argument, used to add one or more spatial features to the inset map.

inlmisc 0.4.9

15 Jan 16:26
18bd9e6
Compare
Choose a tag to compare
  • In LaTeX preamble, omit group separators in the decimal part when using siunitx package.

  • In GetColors, type change from diverging to sequential for color schemes: "berlin", "broc", "cork", "lisbon", "oleron", "tofino", and "vik". Results from CPTs not actually having a zero entry.

  • In PlotMap, fix bug resulting from change in raster::crop that returns an error when the subset is empty, was previously returning NULL.

  • In FindOptimalSubset, stop setting state of random number generator when seed argument is NULL.

Version 0.4.8

23 Sep 16:01
1a93457
Compare
Choose a tag to compare

inlmisc 0.4.8

  • In FindOptimalSubset function, add numIslands argument, used to specify the number of islands, was previously dependent on the parallel argument; change default value of elitism argument from 0 to 5-percent of the island population.

  • Add misc/latex-packages.txt file: contains a list of required LaTeX packages that are not included in the default installation of TinyTeX; use the inlmisc:::InstallLatexPackages() command to install these packages into TinyTeX.

  • In LaTeX preamble, replace xcolor package with color, eliminates an annoying warning when compiling document.

  • In GetColors function, add "turbo" color scheme.

  • In SetHinge function, non-backward compatible change to allocating colors on each side of hinge, is only perceivable when the number of colors is small (n < 10).

  • Rename PrintHelpPages function to PrintPackageHelp. Preserve empty lines in the Examples section of help documentation; fix parsing bug associated with identifying code blocks; tidy main header for each help topic; add internal argument, used to print help pages flagged with keyword internal; replace hr argument with sep; add title_to_name argument, used to replace the help-topic "title" with its "name"; add notrun argument, used to remove ## Not run comments; include internal links by default.

  • In Grid2Polygons, add check_validity argument, used to check the validity of polygons.

  • Fix bugs in raw/build-datasets.R and raw/render-tables.R files that incorrectly called IsColor function.

  • Change package dependency from R >= 3.4.0 to R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R.

Version 0.4.7

06 Aug 19:53
05c6b61
Compare
Choose a tag to compare

inlmisc 0.4.7

  • In SetPolygons, set checkValidity argument to 2 and suppress warnings.

inlmisc 0.4.6

  • Add "usgs_article" template for R Markdown documents. This template is experimental and subject to change in the future.

  • Set checkValidity argument to 2 (check and try to buffer by zero distance to repair) in many of the rgeos function calls.

  • In AddColorKey, remove border line around color blocks.

  • In Grid2Polygons, improved performance; change polygon cropping function from raster::crop to SetPolygons.

  • In RecreateLibrary, remove github option that allowed package installation from GitHub repositories.

  • Add PrintHelpPages function, used to print the HTML code associated with help pages of a loaded R package.

  • In BuildVignettes function, rearrange order of arguments and add doc argument, used to specify the directory to write vignette output files.

  • In GetColors function, add "bpy" (blue-pink-yellow) color scheme.

  • In AddPoints function, change interval to reflect labels, that is, open at the left and closed at right.

  • Add AddIntervals function, used to add vertical interval symbols to plots. Replaces use of graphics::arrows in PlotGraph function, and avoids the warning message resulting from an arrow length less than 1/1000 inch.

  • In misc/preamble.tex file: reduce hyphenation and prevent writing into margin.

  • In PlotGraph function: improve handling of cases where range of y values is zero; extend y-axis limits to prevent symbols from being drawn on an axis limit; change margin line for the main title, axis title, and axis labels; decrease size of upper margin by 0.2 lines; add add.grid argument, determines whether to draw a rectangular grid.

  • In PrintFigure function, allow heading on single figure.

  • In AddSearchButton function, fix bug that prevented popup from opening when openPopup argument is true.

Version 0.4.4

07 Nov 22:43
cca0260
Compare
Choose a tag to compare

inlmisc 0.4.4

  • Add BuildVignettes function, used to build package vignettes.

  • In SummariseBudget function, improve memory management.

  • Change package imports by adding data.table and removing dplyr.

  • Add SetHinge function, used to specify a hinge location in a color palette.

  • In PrintTable function: d argument can be of class 'matrix'; and a default caption is no longer added when title and headnotes arguments are not specified.

  • Tidy help documentation

  • Add GetRegionOfInterest function, used to calculate the region of interest from spatial points.

  • In FindOptimalSubset function: improve matrix construction of suggestions; change calculation of number of bits in a number.

  • In AddColorKey function, rearrange order of arguments.

  • In PlotCrossSection function: add bend.label argument, used to place labels at top of the bend-in-section lines; change default value of bg.col argument from "#FFFFFFD8" to NULL, and for scale.loc argument from "bottom" to NULL; make font/line color darker for section breaks and features.

  • Rename GetTolColors function to GetColors. Add additional color schemes; replace start and end arguments with stops, a vector of length 2; change blind argument option from "monochromacy" to "monochrome"; return a variant of the GetColors function when argument n is unspecified.

  • For leaflet-search plugin, change version from 2.8.0 to 2.9.6 and tidy wrapper functions.

  • In CreateWebMap function, add service argument for specifying the mapping service to use for accessing base-map tiles.

  • Change required R version from >= 3.2.0 to >= 3.4.0.

Version 0.4.3

10 Sep 16:56
419e17d
Compare
Choose a tag to compare

inlmisc 0.4.3

  • Add AddNorthArrow function, was previously defined as an internal function.

  • In AddScaleBar function: non-backward compatible argument changes. Remove offset argument and replace with ..., see help documentation for details.

  • Make dichromat a suggested package.

  • Remove viridisLite from suggested packages.

  • Add GetInsetLocation function, used to determine the location for a inset graphics in the main plot region.

  • In AddPoints function: add bty, draw.legend, and draw.points arguments.

  • In PlotGraph function: add xpd argument, determines whether point and (or) line symbols are clipped to the plot region; change default color scheme; change contents of fill argument (non-backward compatible) and add a fillcolor argument; provide main argument a default value of NULL.

  • In FindOptimalSubset function, add monitor argument to check on status of GA run.

  • In GetTolColors function: add color schemes; change default scheme from "bright" to "smooth rainbow"; add start, end, bias, reverse, blind, and gray arguments.

Version 0.4.2

14 Jul 20:35
b0410f9
Compare
Choose a tag to compare

inlmisc 0.4.2

  • In GetTolColors function, revise color schemes based on issue 3.0 of technical note.

  • In PlotGraph function, improve placement of tick marks.

  • Remove colorspace from suggested packages and replace with viridisLite.

  • In ToScientific function, better identify whether to print numeric values in fixed or scientific notation.

  • In AddScaleBar function, non-backward compatible argument changes and formatting improvements.

  • In PlotGraph function: fix bug that resulted in an error when type = "n"; and add main argument for placing a title at the top of the plot.

  • Make gstat and roxygen2 suggested packages.

  • Remove httr, maps, and maptools from suggested packages.

  • In misc/preamble.tex file: tidy code; include fix for spacing after number in List of Figures and List of Tables; remove helvet package; and add float package, provides the H float modifier option.

  • In AddInsetMap: add an optional e argument, a numeric vector describing the extent of the smaller axis-aligned rectangle; add "center" option for loc argument; and add bty argument, determines if a box is to be drawn around the inset map.

  • Update leaflet-search.min.js and leaflet-search.min.css files to version 2.8.0.

  • Add PrintFigure function, used to print the LaTeX code associated with a figure.

Version 0.4.0

10 Apr 15:19
3efb2f9
Compare
Choose a tag to compare

inlmisc 0.4.0

  • Add GetTolColors function, used to access color palettes by Paul Tol.

  • Avoid importing all functions from a package.

  • Remove AddCertificate function, no longer needed with new version of R (3.4.3).

  • Add PrintTable function, used to print the LaTeX code associated with a data.frame object.

  • In PlotMap function, remove option to map points.

  • In ReadCodeChunks function, remove dependency on knitr-intro.Rmd file in example.

  • In AddColorKey function, replace scientific argument with scipen, see getOption("scipen") command.

  • In AddColorKey function, add log argument to specify axis to be logarithmic.

  • In AddColorKey, use m x 10^n format for tick labels written in scientific notation.

  • In RecreateLibrary function, add parallel argument to install packages from source using parallel processes.

  • In ToScientific function, add big.mark argument with default value of ",".

  • In ToScientific function, fix bug that formated 0 as NA when type = "plotmath".

  • In CreateWebMap function, pass ... arguments to leaflet::leaflet function, these arguments were previously passed to the leaflet::leafletOptions function.

  • In CreateWebMap function, add maps argument to specify which base maps to include.

  • In CreateWebMap function, remove coordinates and zoom level information from top of map.

  • Add AddHomeButton, AddClusterButton, and AddSearchButton, and AddLegend functions, used to add additional web map elements.

  • In FindOptimalSubset function, allow integer chromosomes to be specified for the suggestions argument.

  • Add additional argument checks using checkmate package.

Version 0.3.5

27 Oct 23:00
ae34451
Compare
Choose a tag to compare

inlmisc 0.3.5

  • In PlotMap function, fix bug introduced by previous fix of raster range calculation.

  • Made AddCertificate an 'internal' function.

  • Add argument checks using checkmate package.

inlmisc 0.3.4

  • In PlotMap function, fix bug in range calculation of raster values by removing finite = TRUE.

  • In PlotMap function, fix extent of background image, rivers, lakes, and roads using par("usr").

  • Add FindOptimalSubset function, used to identify an optimal subset using a genetic algorithm.

inlmisc 0.3.3

  • In AddPoints function: add option to scale symbol size to radius;
    revise calculation of symbol size and legend labels.

  • In PlotMap function, let r argument accept any object that can be converted to a RasterLayer class.

  • In LaTeX preamble: add verbatimbox package; add maketitle format.

  • In PlotMap function, add simplify argument, used to convert raster to polygons prior to plotting.

  • In Grid2Polygons function: allow grd argument to be an object of class SpatialPixelsDataFrame or Raster*; transform coordinate reference system (CRS) of ply argument to match the CRS of the grd argument; and add zlim argument, a limit on the attribute variable.

  • In ToScientific function, add arguments scipen, delimiter, and ...; and rename lab.type argument to type. Code in place for backwards compatibility.