% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/krnn.R
\name{plot_krnn_smoother}
\alias{plot_krnn_smoother}
\title{Plot a krnn_smoother Object}
\usage{
plot_krnn_smoother(x, ...)
}
\arguments{
\item{x}{A \code{"krnn_smoother"} object returned by
\code{\link{krnn_smoother}}.}

\item{...}{Additional graphical parameters passed to
\code{\link[graphics]{plot.default}}.}
}
\value{
Invisibly returns \code{x}.
}
\description{
Plots the estimated conditional probability
\eqn{\hat{P}(y = 0 \mid \mathrm{sdp})} against the signed depth, with
optional bootstrap confidence bands.
}
\examples{
set.seed(5)
M <- 100; N <- 80
t  <- seq(0, 1, length.out = M)
X0 <- t(replicate(40, sin(2 * pi * t) + rnorm(M, sd = 0.4)))
X1 <- t(replicate(40, cos(2 * pi * t) + rnorm(M, sd = 0.4)))
X  <- rbind(X0, X1)
y  <- rep(0:1, each = 40)
sm <- krnn_smoother(X, y, k = 10)
plot_krnn_smoother(sm)

}
