% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_slope.R
\name{plot_dz}
\alias{plot_dz}
\title{Plot distance-elevation profile with slope coloring}
\usage{
plot_dz(
  d,
  z,
  fill = TRUE,
  horiz = FALSE,
  pal = NULL,
  ...,
  legend_position = "top",
  col = "black",
  cex = 0.9,
  bg = grDevices::rgb(1, 1, 1, 0.8),
  title = "Slope colors (percentage gradient)",
  brks = c(3, 6, 10, 20, 40, 100),
  seq_brks = NULL,
  ncol = 4
)
}
\arguments{
\item{d}{Vector of cumulative distances}

\item{z}{Vector of elevation values}

\item{fill}{Logical, whether to fill segments with slope colors (default: TRUE)}

\item{horiz}{Logical, whether legend should be horizontal (default: FALSE)}

\item{pal}{Color palette for slope visualization (default: NULL, uses slopes_palette)}

\item{...}{Additional arguments passed to graphics functions}

\item{legend_position}{Position of legend (default: "top")}

\item{col}{Color of the elevation profile line (default: "black")}

\item{cex}{Character expansion factor for legend text (default: 0.9)}

\item{bg}{Background color for legend (default: semi-transparent white)}

\item{title}{Title for the legend (default: "Slope colors (percentage gradient)")}

\item{brks}{Vector of slope break points for coloring (default: c(3, 6, 10, 20, 40, 100))}

\item{seq_brks}{Sequence of breaks to show in legend (default: NULL, auto-generated)}

\item{ncol}{Number of columns in legend (default: 4)}
}
\value{
NULL (creates plot as side effect)
}
\description{
Creates a distance-elevation plot with segments colored by slope gradient.
}
