## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.align = "center",
  out.width = "90%",
  fig.width = 10,
  fig.height = 6,
  dpi = 96
)

## ----echo=FALSE, out.width="90%", fig.cap="Convexity constraint (Conv = U)"----
knitr::include_graphics("./figures/test_add_remove_knots-001.png")

## ----echo=FALSE, out.width="90%", fig.cap="Initial set of knots"--------------
knitr::include_graphics("./figures/test_add_remove_knots-002.png")

## ----echo=FALSE, out.width="90%", fig.cap="One knot is selected"--------------
knitr::include_graphics("./figures/test_add_remove_knots-003.png")

## ----echo=FALSE, out.width="90%", fig.cap="knots are removed"-----------------
knitr::include_graphics("./figures/test_add_remove_knots-004.png")

## ----echo=FALSE, out.width="90%", fig.cap="'Add Knot' is selected"------------
knitr::include_graphics("./figures/test_add_remove_knots-007.png")

## ----echo=FALSE, out.width="90%", fig.cap="add manual knots"------------------
knitr::include_graphics("./figures/test_add_remove_knots-008.png")

## ----echo=FALSE, out.width="90%", fig.cap="regression curve with manual knots"----
knitr::include_graphics("./figures/test_add_remove_knots-010.png")

## ----echo=FALSE, out.width="90%", fig.cap="Regression curve with more knots"----
knitr::include_graphics("./figures/test_add_remove_knots-011.png")

## ----echo=FALSE, out.width="90%", fig.cap="Remove the manual knots "----------
knitr::include_graphics("./figures/test_add_remove_knots-012.png")

