README.md

esmisc

Build
Status Build
status codecov Open
Issues Downloads CRAN_Status_Badge

esmisc is a R package containing misc functions of Eduard Szöcs.

Functions

Currently the following functions are available:

Installation

esmisc is currently only available on github. To install esmisc use:

install.packages('devtools')
library(devtools)
install_github('esmisc', 'EDiLD')
library(esmisc)

Examples

library(esmisc)

Read DWD REGNIE data into R

r <- read_regnie(system.file("extdata", "ra050120.gz", package = "esmisc"))
# plot the raster
require(raster)
plot(r, main = 'Precipitation on 20.01.2005')

ggplot2 theme

library(ggplot2)
p <- ggplot(mtcars) + 
  geom_point(aes(x = wt, y = mpg, colour = factor(gear))) + 
  facet_wrap(~am) + 
  theme_edi()
p

other functions

Geometric mean

mean(c(1, 10, 100))

## [1] 37

geomean(c(1, 10, 100))

## [1] 10


EDiLD/esmisc documentation built on May 6, 2019, 2:59 p.m.