Message-ID: <00f34f4a-9122-4a9f-ac8e-d1ac9d7d3b65@l19g2000yqc.googlegroups.com>
Date: 2011-12-13T01:47:52Z
From: Mike Harwood
Subject: tcplot documentation in evd package
Hello, and please advise regarding any errors/omissions on my part.
However, the documentation for R's tcplot function in the evd package
appears to contain an error. I am using evd version 2.2-4 in R 2.14.0
with Windows XP.
> data(portpirie)
> mrlplot(portpirie) ## No Error
> tlim <- c(3.6, 4.2)
> tcplot(portpirie, tlim) ## Line from documentation
Error in fpot(data, u[1], model = model, cmax = cmax, r = r, ulow =
ulow, :
`x' must be a non-empty numeric vector
> tcplot(portpirie, tlim=c(3.6, 4.2)) ## explicitly specifying the threshold limits
Error in fpot(data, u[1], model = model, cmax = cmax, r = r, ulow =
ulow, :
`x' must be a non-empty numeric vector
tcplot(portpirie$SeaLevel, tlim) ## Resolves Issue
gpd.fitrange(portpirie$SeaLevel, 3.6, 4.2) ## An alternative, still
naming the SeaLevel vector
Please advise. Thanks!
Mike