Learn R Programming

chillR (version 0.75)

plot_climateWizard_scenarios: 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"
)

Value

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

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.

Author

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

Run this code

#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")

Run the code above in your browser using DataLab