plot_climateWizard_scenarios: Plot mutltiple ClimateWizard scenarios obtained with...

View source: R/getClimateWizard_scenarios.R

plot_climateWizard_scenariosR Documentation

Plot mutltiple ClimateWizard scenarios obtained with getClimateWizard_scenarios

Description

This function plots multiple scenarios obtained with the getClimateWizard_scenarios function.

Usage

plot_climateWizard_scenarios(
  getscenarios_element,
  low_filter = -1000,
  high_filter = 1000,
  color = "cadetblue"
)

Arguments

getscenarios_element

outputs from the getClimateWizard_scenarios function

low_filter

numeric value specifying the lowest plausible value for the variable of interest. This is sometimes necessary to exclude erroneous values in the ClimateWizard database.

high_filter

numeric value specifying the highest plausible value for the variable of interest. This is sometimes necessary to exclude erroneous values in the ClimateWizard database.

color

color to be used for the plots.

Value

returns nothing, but a plot is produced as a side effect.

Author(s)

Eike Luedeling

References

Girvetz E, Ramirez-Villegas J, Navarro C, Rodriguez C, Tarapues J, undated. ClimateWizard REST API for querying climate change data. https://github.com/CIAT-DAPA/climate_wizard_api

Examples


#example is #d out, because of runtime issues.
#getC<-getClimateWizard_scenarios(coordinates=c(longitude=6.99,latitude=50.62),
#                                scenarios=c("rcp45","rcp45","rcp85","rcp85"),
#                                start_years=c(2035,2070,2035,2070),
#                                end_years=c(2065,2100,2065,2100),
#                                metric=c("monthly_tmean"),
#                                GCMs=c("all"))
#plot_climateWizard_scenarios(getC,low_filter=-6,high_filter=6,color="red")


chillR documentation built on Nov. 28, 2023, 1:09 a.m.