% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paintr-app.R
\name{ptr_ui_plot}
\alias{ptr_ui_plot}
\title{Plot Pane Piece for a \code{ggpaintr} Formula}
\usage{
ptr_ui_plot(id = NULL)
}
\arguments{
\item{id}{Optional module id; the namespace prefix for the output.
Defaults to \code{NULL} (identity namespace) for the single-embedding
case. When set, must match the \code{id} passed to the other piece
functions and to the \code{shiny::moduleServer()} wrapping \code{\link[=ptr_server]{ptr_server()}}
(or to \code{\link[=ptr_server]{ptr_server()}}).}
}
\value{
A \link[shiny:reexports]{shiny::tag}.
}
\description{
The plot card on its own: a \code{shiny::plotOutput()} bound to the
\code{ptr_plot} id the server writes to (see \code{\link[=ptr_server]{ptr_server()}}). One of the
single-piece UI builders for the L3 "own every UI piece" workflow;
place it anywhere in your own layout and wire the server with
\code{\link[=ptr_server]{ptr_server()}} / \code{\link[=ptr_server]{ptr_server()}}.
}
\details{
The piece is \strong{truly bare}: just the plot card, with no error slot and
no show-code button. Behaviour is added compositionally by the
combinators \code{\link[=ptr_ui_inline_error]{ptr_ui_inline_error()}} (nests an error slot in the card
body) and \code{\link[=ptr_ui_toggle_code]{ptr_ui_toggle_code()}} (adds the \verb{</>} toggle + slide-out
code window) — not by flags on this function.
}
\examples{
ptr_ui_plot("myplot")
}
\seealso{
\code{\link[=ptr_ui_error]{ptr_ui_error()}}, \code{\link[=ptr_ui_code]{ptr_ui_code()}}, \code{\link[=ptr_ui_inline_error]{ptr_ui_inline_error()}},
\code{\link[=ptr_ui_toggle_code]{ptr_ui_toggle_code()}}, \code{\link[=ptr_ui_controls]{ptr_ui_controls()}}, \code{\link[=ptr_server]{ptr_server()}}
}
