% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_theme.R
\name{nhm_plotly_layout}
\alias{nhm_plotly_layout}
\title{Apply NHM theme to a plotly chart}
\usage{
nhm_plotly_layout(
  p,
  palette = "default",
  mapbox = NULL,
  show_controls = FALSE,
  ...
)
}
\arguments{
\item{p}{A plotly object.}

\item{palette}{Character. Passed to \code{\link{nhm_colours}}.}

\item{mapbox}{A list of mapbox layout options (e.g. style, zoom,
center). If \code{NULL} (default), no mapbox settings are applied.}

\item{show_controls}{Logical. Whether to show the plotly mode bar.
Defaults to \code{FALSE}.}

\item{...}{Additional arguments passed to
\code{plotly::layout()}.}
}
\value{
The styled plotly object.
}
\description{
Styles a plotly object with NHM dark theme colours: background,
axis text, grid lines, legend, and font. Also accepts mapbox
configuration for map-based charts.
}
