% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.validate_pointplus_shape}
\alias{.validate_pointplus_shape}
\title{Validate a geom_point_plus() shape definition}
\usage{
.validate_pointplus_shape(shape, name = NULL)
}
\arguments{
\item{shape}{A proposed shape definition. Must be a data frame with columns
\code{x}, \code{y}, and \code{piece}.}

\item{name}{Shape name, used by callers.}
}
\value{
A cleaned shape data frame containing only \code{x}, \code{y}, and
\code{piece}. The \code{piece} column is converted to sequential integers if
it wasn't already formatted like that.
}
\description{
Internal helper used by \code{add_shape_plus()} to check that a custom
point shape has the structure needed by the ggplotplus shape-drawing
machinery.
}
\keyword{internal}
