berryFunctions v1.19.1

0

Monthly downloads

0th

Percentile

Function Collection Related to Plotting and Hydrology

Draw horizontal histograms, color scattered points by 3rd dimension, enhance date- and log-axis plots, zoom in X11 graphics, trace errors and warnings, use the unit hydrograph in a linear storage cascade, convert lists to data.frames and arrays, fit multiple functions.

Readme

intro

Miscellaneous R functions. Notable: colPoints, horizHist, logAxis, pointZoom, smallPlot, lsc.

See the Vignette for an overview of the package.

Recent changes (Thanks, Jenny)

installation

Install release version from CRAN: CRAN_Status_Badge downloads Rdoc "berryFunctions dependencies"

install.packages("berryFunctions")
library(berryFunctions)
vignette("berryFunctions")
?berryFunctions

Update to the current development version on github, incl. vignette: :

if(!requireNamespace("remotes", quitly=TRUE)) install.packages("remotes")
remotes::install_github("brry/berryFunctions", build_opts="--no-manual")

trouble

If direct installation from CRAN doesn't work, your R version might be too old. In that case, an update is really recommendable: r-project.org. If you can't update R, try installing from source (github) via instGit or devtools as mentioned above. If that's not possible either, here's a manual workaround: click on Clone or Download - Download ZIP (top right, link), unzip the file to some place, then

setwd("that/path")
dd <- dir("berryFunctions-master/R", full=T)
dummy <- sapply(dd, source)

This creates all R functions as objects in your globalenv workspace (and overwrites existing objects of the same name!).

license

This package is under the GPL license. I am fine with you doing whatever you want with it, provided that my name and credit remains attached to it. If you legally need a more permissive license, let me know and I can probably change it.

Functions in berryFunctions

Name Description
betaPlotComp Compare beta distributions
ciBand polygon confidence bands
dataStr str of datasets
createFun create function framework
addAlpha Color transparency
circle Draw circle with a given radius
distance Distance between points
catPal Categorical color palette
lim0 axis limits with one end at zero
groupHist Histogram for classes
dupes Duplicate lines in file
between Are values between a and b?
checkFile check file existence
classify Classification into groups
gof GOF measures
getColumn get column from data.frame
divPal Diverging color palette
colPointsLegend Legend for colPoints
climateGraph climate graph after Walter and Lieth
colPoints Points colored relative to third dimension
createPres Create .Rnw presentation template
horizHist Horizontal histogram
googleLink2pdf extract pdf link from google search result
exp4p 4-parametric exponential function
combineFiles Combine Textfiles into one
colPointsHist Histogram for colPoints
l2df List to data.frame
getName get the name of an input in nested function calls
linLogHist lin-log transition histogram
is.error Check if an expression returns an error
headtail head and tail
logVals Create log-axis values and labels
insertRows insert rows to data.frame
learnVocab spaced learning
logSpaced Logarithmically spaced points
linLogTrans Animation for transition from linear to logarithmic axis
pdfpng Create pdf and png graph
l2array Convert list of arrays to array
expReg Exponential regression with plotting
linReg linear regression with plotting
compareFiles Compare textfiles for equality
monthLabs Nicely spaced labels along a month
popleaf create leaflet popup box info
locLine abline at locator point in graph
locArrow arrow at locator point in graph
round0 Round numbers with leading and trailing zeros
funSource Source code of a function
normPlot Normal density plot
convertUmlaut Convert German Umlaute to ASCII
movAv Moving average
yearSample Nonrandom year with sample
funnelPlot Funnel plots for proportional data
parallelCode code chunk for parallelization
lsMem Show memory size of objects in MB
pretty2 Truncated pretty breakpoints
na9 Prepend spaces before na.strings
rainbow2 Rainbow from blue to red
quantileMean Average of R's quantile methods
panelDim Arrange panels in a multipanel plot (par mfrow)
rescale shift and scale a vector
quantileBands Quantile bands
normalizePathCP normalizePath Cross Platform
removeSpace Remove white spaces from strings
lsc Linear storage cascade, unit hydrograph
movAvLines Moving average with different window widths
roundedRect Rectangles with rounded corners
legendmt legend with multiline title
nameSample Nonrandom character sequence with sample
smoothLines draw smoothed lines
newFilename Create new filename if file already exists
owa Overwrite argument default lists
tableColVal Table with values with value-dependent colored backgrounds in pdf
runAxis Label axis with typical running times
library2 install.package and require
logAxis Label logarithmic axes
sortDF sort dataframes by column
textField Write text to plot with halo underneath
seasonality Seasonality analysis
spiralDateAnim Animated spiral graph
timeAxis Label date axis
spiralDate Spiral graph of time series
showPal show color palettes
unitHydrograph Unit Hydrograph
tryStack try an expression, returning the error stack
packagePath Base path of package
yearPlot annual plot
smallPlot Inset small plot within figure
truncMessage truncate message parts
testExamples Test examples in a package
seqPal Sequential color palette
mReg Multiple regression
logHist Histogram of logarithmic values
sumatraInitialize Set useful Sumatra PDF Viewer default settings
seqR seq with a range argument
openPDF open PDF file with sumatra viewer
openFile open file in default application
monthAxis Label date axis
superPos superposition of discharge, unit hydrograph
timer Timer alarm
traceCall call stack of a function
around View values around an index
addRows Add n rows to a data.frame
almost.equal Vectorized testing for near-equality
anhang open the Appendix of Rclick
TFtest Test logical expressions
addFade Color fade out
approx2 Smart linear NA interpolation
berryFunctions-package Berry's functions
betaPlot Beta density plot
No Results!

Vignettes of berryFunctions

Name
berryFunctions.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2020-06-06
License GPL (>= 2)
URL https://github.com/brry/berryFunctions
RoxygenNote 7.1.0
VignetteBuilder knitr
BugReports https://github.com/brry/berryFunctions
NeedsCompilation no
Packaged 2020-06-06 13:25:26 UTC; berry
Repository CRAN
Date/Publication 2020-06-06 15:30:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/berryFunctions)](http://www.rdocumentation.org/packages/berryFunctions)