% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_prep.R
\name{plot.bdeb_data}
\alias{plot.bdeb_data}
\title{Plot a BDEB Data Object}
\usage{
\method{plot}{bdeb_data}(x, endpoint = NULL, ...)
}
\arguments{
\item{x}{A \code{\link[=bdeb_data]{bdeb_data()}} object.}

\item{endpoint}{Which endpoint to plot: \code{"growth"} or
\code{"reproduction"}.  Default \code{NULL}, which prefers growth when both
are present.}

\item{...}{Ignored.}
}
\value{
A \link[ggplot2:ggplot]{ggplot2::ggplot} object.
}
\description{
Visualises the contents of a \code{\link[=bdeb_data]{bdeb_data()}} object.  Growth data are
shown as observed length versus time, with one trace per individual.
Reproduction data are shown as interval counts versus interval
midpoint.  When concentration information is available (DEBtox
setups) individuals are coloured by group.
}
\examples{
df <- data.frame(id = 1, time = 0:5, length = seq(0.1, 0.6, by = 0.1))
dat <- bdeb_data(growth = df)
plot(dat)
}
