Learn R Programming

bliss (version 1.1.1)

lines_bliss: lines_bliss

Description

Add a line to a plot obtained with image_Bliss.

Usage

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

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab