hyperbolaPlot | R Documentation |
Plot a hyperbola
hyperbolaPlot(
hyp,
x = NULL,
add = TRUE,
ann = FALSE,
ann.pos = 3,
ann.offset = 0.5,
ann.col = "green",
ann.font = 2,
n = 100,
...
)
hyp |
[ |
x |
[ |
add |
[ |
ann |
[ |
ann.pos |
[ |
ann.offset |
[ |
ann.col |
[ |
ann.font |
[ |
... |
Additional arguments passed to
|
If x = NULL
and add = TRUE
, the hyperbola is per default
displayed over the entire plot. You can define the extent of the hyperbola
by setting xlim
as in the function plot
.
If add = FALSE
x
must be defined otherwise
an error is raised.
hyperbolaFit
, hyperbolaSim
data("frenkeLine00")
x <- frenkeLine00
x <- estimateTime0(x, w = 5, method = "MER", FUN = mean)
x <- time0Cor(x, method = "pchip")
x <- gainAGC(fFilter(x, f = c(180, 250), type = "low"), w = 20)
plot(x)
# xy <- locator(type = "l")
xy <- list( x = c( 11.8, 15.0, 17.7, 20.3, 24.4, 27.4, 30.9, 35.2),
y = c(142.2, 119.8, 107.7, 99.5, 97.5, 105.6, 120.9, 138.1))
hyp <- hyperbolaFit(xy)
hyperbolaPlot(hyp, x = seq(5, 50, by = 0.01), col = "green",
lwd = 4, ann = TRUE)
points(xy, pch = 20, col = "blue")
plot(x)
hyp2 <- list(x0 = hyp$x0, t0 = hyp$t0, vrms = hyp$vrms)
hyperbolaPlot(hyp2, col = "blue", lwd = 2, ann = TRUE, xlim = c(10, 40))
points(hyp$x0, hyp$t0, pch = 20, col = "red", cex = 1.3)
# with 'add = FALSE'
plot(x)
hyperbolaPlot(hyp, x = seq(10, 40, by = 0.1), col = "red",
lwd = 2, add = FALSE, type = "l")
hyperbolaPlot(hyp, x = seq(10, 40, by = 0.1), col = "red",
lwd = 2, add = FALSE, type = "l", ylim = c(175, 95))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.