% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{save_error_map_png} \alias{save_error_map_png} \title{Save Model Error Diagnostic Map} \usage{ save_error_map_png(data, boundary_sf, raster_path, output_path) } \arguments{ \item{data}{A data frame containing model predictions (must include '.pred_class', 'forested', '.pred_Yes', 'lon', and 'lat').} \item{boundary_sf}{An \code{sf} object representing the state boundary.} \item{raster_path}{Character string. File path to the elevation raster (.tif).} \item{output_path}{Character string. File path where the PNG will be saved.} } \value{ The \code{output_path} (invisible), for integration with \code{targets}. } \description{ Generates a diagnostic map highlighting prediction errors. It plots misclassified points colored by the magnitude of the error (confidence in the wrong answer) over a hillshaded elevation background. }