-
Svajunas Plunge authored1c121684
plot_variable_at_harvkill.Rd 1.33 KiB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_mgt_harv.R
\name{plot_variable_at_harvkill}
\alias{plot_variable_at_harvkill}
\title{Boxplot for relevant variables at harvest-kill}
\usage{
plot_variable_at_harvkill(sim_verify, variable, years = 1900:2100)
}
\arguments{
\item{sim_verify}{Simulation output of the function \code{run_swat_verification()}
as a single object or as a list of objects (representing \code{run_swat_verification()}
function runs with different settings).
To plot the heat units at least the output option \code{outputs = 'mgt'}
must be set in \code{run_swat_verification()}.}
\item{variable}{Selected variable to be plotted. Must be one of: 'phu',
'yield', 'bioms'}
\item{years}{Simulated years which are aggregated in the boxplot}
}
\value{
ggplot boxplot the selected variable at harvest-kill.
}
\description{
plot_variable_at_harvkill plots boxplots of one of the variables crop heat unit
fractions ('phu'), crop yields ('yield'), or plant biomass ('bioms') for crops
at harvest-kill of a crop separated for all identified crops.
}
\examples{
\dontrun{
##As single object
plot_variable_at_harvkill(sim_nostress, 'yield')
##As a list
sim_list<- list(
no_stress = sim_nostress,
only_nutrient = sim_nutrientstress,
all_stress = sim_allstress)
plot_variable_at_harvkill(sim_list, 'yield')
}
}