Plotting Nonparametric Function Estimates
Plots nonparametric function estimates obtained from BayesX
plotnonp(data, x = 2, y = c(3, 4, 5, 7, 8), ylim = NULL, lty = c(1, 2, 3, 2, 3), cols = rep(1, length(y)), month, year, step=12, xlab, ylab, ...)
data |
Either the name of a file or a data frame containing the estimation results. |
x |
Defines the x-axis in the plot. Either the name of a variable in |
y |
Defines the variables to be plotted against |
ylim |
Since |
lty |
Vector of line types used for plotting (must have the same length as |
cols |
Vector of colors used for plotting (must have the same length as |
month, year, step |
Provide specific annotation for plotting estimation results for temporal variables. |
xlab, ylab |
|
... |
Further arguments to be passed to the interval call of |
Felix Heinzl, Andreas Brezger and Thomas Kneib
res <- read.table(system.file("examples/nonparametric_f_x_pspline.res", package="BayesX"), header=TRUE) plotnonp(res) plotnonp(res, x="x") plotnonp(res, x="x", y="pmean") plotnonp(res, x="x", y="pmed") plotnonp(res, x="x", y="pmed", ylim=c(-2,2)) plotnonp(res, x="x", y=c("pmean", "pqu10", "pqu90"), lty=c(1,1,1), col=c("red","blue","blue")) plotnonp(res, xlab="some variable", ylab="f(some variable)", main="Nonlinear effect of some variable", sub="penalised spline") res <- read.table(system.file("examples/nonparametric2_f_time_pspline.res", package="BayesX"), header=TRUE) plotnonp(res) plotnonp(res, month=1, year=1980, step=12) res <- res[1:18,] plotnonp(res, month=1, year=1980, step=12)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.