% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plot_pimap}
\alias{plot_pimap}
\title{Plot the person-item threshold distribution}
\usage{
plot_pimap(fit, bins = 35, xlim = NULL)
}
\arguments{
\item{fit}{A fitted object from \code{\link{rasch}}.}

\item{bins}{Number of histogram bins.}

\item{xlim}{Optional logit range for the shared scale; persons and
thresholds outside it are omitted.}
}
\value{
Called for its plotting side effect; invisibly \code{NULL}.
}
\description{
The targeting display: the person location distribution above the axis and
the item threshold distribution mirrored below it, on a shared logit
scale.
}
\examples{
set.seed(1)
d <- seq(-2, 2, length.out = 6)
X <- matrix(rbinom(400 * 6, 1, plogis(outer(rnorm(400), d, "-"))), 400, 6)
colnames(X) <- paste0("I", 1:6)
plot_pimap(rasch(X))
}
