Add a line to a plot obtained with image_Bliss.

lines_bliss(x, y, col = "black", lty = "solid")

Arguments

x

the coordinates of points in the plot.

y

the y coordinates of points in the plot.

col

a color.

lty

option corresponding to "linetype" of geom_line.

Examples

data(data1)
data(param1)
data(res_bliss1)

image_Bliss(res_bliss1$beta_posterior_density,param1,q=1) +
lines_bliss(res_bliss1$data$grids[[1]],res_bliss1$smooth_estimate[[1]])+
lines_bliss(res_bliss1$data$grids[[1]],res_bliss1$Bliss_estimate[[1]],col="purple")