diff --git a/DESCRIPTION b/DESCRIPTION index 2a0a6d7..5cc3441 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -27,6 +27,6 @@ Suggests: viridis VignetteBuilder: knitr License: GPL-3 -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 URL: https://australianantarcticdivision.github.io/palr/, https://github.com/AustralianAntarcticDivision/palr BugReports: https://github.com/AustralianAntarcticDivision/palr/issues diff --git a/NAMESPACE b/NAMESPACE index b30e81b..0b9ed97 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -7,6 +7,8 @@ export(chl_pal) export(col2hex) export(d_pal) export(data_pal) +export(dirty_image) +export(dirty_pal) export(icePal) export(ice_pal) export(image_pal) @@ -19,4 +21,5 @@ importFrom(grDevices,col2rgb) importFrom(grDevices,colorRampPalette) importFrom(grDevices,hcl.colors) importFrom(grDevices,rgb) +importFrom(stats,approxfun) importFrom(utils,head) diff --git a/man/dirty_image.Rd b/man/dirty_image.Rd new file mode 100644 index 0000000..edebe66 --- /dev/null +++ b/man/dirty_image.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/dirty.R +\name{dirty_image} +\alias{dirty_image} +\title{Convert list of raster output to bathymetry palette} +\usage{ +dirty_image(x, alpha = 1) +} +\arguments{ +\item{x}{object returned by vapour package 'gdal_raster_data()'} + +\item{alpha}{0 to 1 for transparency} +} +\value{ +modified x +} +\description{ +Convert list of raster output to bathymetry palette +} diff --git a/man/dirty_pal.Rd b/man/dirty_pal.Rd new file mode 100644 index 0000000..ffac1cf --- /dev/null +++ b/man/dirty_pal.Rd @@ -0,0 +1,22 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/dirty.R +\name{dirty_pal} +\alias{dirty_pal} +\title{Bathymetry palette, absolute for global use} +\usage{ +dirty_pal(x, alpha = 1) +} +\arguments{ +\item{x}{numeric value} + +\item{alpha}{0 to 1 for transparency} +} +\value{ +vector of hex colours +} +\description{ +From AAD underway facility. +} +\examples{ +dirty_pal(seq(-8000, 0, length.out = 10)) +} diff --git a/man/palr.Rd b/man/palr.Rd index 74ee092..f745625 100644 --- a/man/palr.Rd +++ b/man/palr.Rd @@ -2,8 +2,29 @@ % Please edit documentation in R/palr-package.r \docType{package} \name{palr} +\alias{palr-package} \alias{palr} \title{palr} \description{ palr: colours for data } +\seealso{ +Useful links: +\itemize{ + \item \url{https://australianantarcticdivision.github.io/palr/} + \item \url{https://github.com/AustralianAntarcticDivision/palr} + \item Report bugs at \url{https://github.com/AustralianAntarcticDivision/palr/issues} +} + +} +\author{ +\strong{Maintainer}: Michael D. Sumner \email{mdsumner@gmail.com} + +Other contributors: +\itemize{ + \item Abigael Proctor (Named the package) [contributor] + \item Tomas Remenyi (Provided colours for element_pal) [contributor] + \item R Core Team and contributors worldwide (source code of image.default) [contributor] +} + +}