Learn R Programming

bliss (version 1.0.2)

lines_bliss: lines_bliss

Description

A suitable representation of the Bliss estimate.

Usage

lines_bliss(x, y, connect = FALSE, ...)

Arguments

x

the coordinates of points in the plot.

y

the y coordinates of points in the plot.

connect

a logical value (optional), to handle discontinuous function. If connect is TRUE, the plot is one line. Otherwise, several lines are used.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Examples

Run this code
# NOT RUN {
### Plot the BLiss estimate on a suitable grid
# }
# NOT RUN {
data(data1)
data(param1)
# res_bliss1 <- fit_Bliss(data=data1,param=param1,verbose=TRUE)
# }
# NOT RUN {
data(res_bliss1)
### Plot the BLiss estimate on a suitable grid
plot_bliss(res_bliss1$data$grids[[1]],
           res_bliss1$Bliss_estimate[[1]],lwd=2,bound=FALSE)
lines_bliss(res_bliss1$data$grids[[1]],
            res_bliss1$Smooth_estimate[[1]],lty=2)
# }

Run the code above in your browser using DataLab