% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_slope.R
\name{plot_slope}
\alias{plot_slope}
\title{Plot elevation profile with slope coloring}
\usage{
plot_slope(
  route_xyz,
  lonlat = sf::st_is_longlat(route_xyz),
  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 = seq(from = 3, to = length(brks) * 2 - 2),
  ncol = 4,
  ...
)
}
\arguments{
\item{route_xyz}{An sf object containing linestring geometries with XYZ coordinates}

\item{lonlat}{Logical, whether coordinates are longitude/latitude (default: auto-detected)}

\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{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: auto-generated)}

\item{ncol}{Number of columns in legend (default: 4)}

\item{...}{Additional arguments passed to plot_dz}
}
\value{
NULL (creates plot as side effect)
}
\description{
Creates an elevation profile plot from route geometries with XYZ coordinates,
with segments colored according to slope gradient.
}
