KorcakPlot2: Korkcak plot of 2 data sets

View source: R/KorcakPlot2.R

KorcakPlot2R Documentation

Korkcak plot of 2 data sets

Description

Korkcak plot of 2 data sets

Usage

KorcakPlot2(
  data1,
  name1,
  data2,
  name2,
  minsize = 0,
  xbreaks = c(10, 1000, 1e+05),
  ybreaks = c(0.005, 0.001, 0.01, 0.1, 0.2, 0.4, 0.6, 0.8, 1),
  addLine = "linear",
  useLargest = FALSE
)

Arguments

data1

Required. Vector holding first data set.

name1

Required. Name of first data set.

data2

Required. Vector holding second data set.

name2

Required. Name of second data set.

minsize

Optional. Minimum value to be plotted.

xbreaks

Optional. Location of breaks in x-axis. Default is c(10,1000,100000)

ybreaks

Optional. Location of breaks in y-axis. Default is c(0.005,0.001,0.01,0.1,0.2,0.4,0.6,0.8,1).

addLine

Optional. Default is none. Other options are linear, quadratic, and gpd.

useLargest

Optional. If TRUE then the largest value will be used, i.e. its non-exceedence probability willl be > 0. Default is FALSE.

Value

Returns a ggplot2 object of korcak plot.

Examples

## Not run: 
p <- KorcakPlot2(data1, 'water', data2, 'bog')
## End(Not run)

KevinShook/WDPMr documentation built on April 23, 2022, 12:32 a.m.