% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_circadian.R
\name{ild_circadian}
\alias{ild_circadian}
\title{Time-of-day pattern plot for ILD (circadian-style)}
\usage{
ild_circadian(x, var, type = c("boxplot", "line"))
}
\arguments{
\item{x}{An ILD object (see [is_ild()]) with \code{.ild_time} as POSIXct.}

\item{var}{Character or symbol. Variable to plot (e.g. mood, activity).}

\item{type}{Character. \code{"boxplot"} (default) or \code{"line"} (mean per hour with optional SE).}
}
\value{
A ggplot object (variable by hour of day).
}
\description{
Plots a variable by hour of day (or time-of-day) when \code{.ild_time} is
POSIXct. Useful for EMA (e.g. mood or activity by hour). Does not add
columns to the ILD object; hour is derived internally for plotting.
}
\examples{
d <- ild_simulate(n_id = 5, n_obs_per = 12, seed = 1)
x <- ild_prepare(d, id = "id", time = "time")
ild_circadian(x, y)
}
