Learn R Programming

climenv (version 1.0.0)

plot_wl: plot_wl

Description

Creates a graph using the climate and elevation data which has been extracted for a given location. It accepts the data formatted from the ce_extract function.

Usage

plot_wl(data, geo_id, ...)

Value

Returns a base R family of plot. This function uses the climaemet

package to create the Walter and Lieth (1960) climatic diagram.

Arguments

data

List. Containing climate, elevation and latitude data sets. Structured by ce_extract().

geo_id

Character. Corresponding to a specific feature contained in the "location" argument (specifically in the "location_g" column).

...

Arguments to control styling in ggclimat_walter_lieth().

Author

James L. Tsakalos and Martin R. Smith

References

Pizarro, M, Hernangómez, D. & Fernández-Avilés G. (2023). climaemet: Climate AEMET Tools. Comprehensive R Archive Network. tools:::Rd_expr_doi("10.5281/zenodo.5205573")Walter, H.B., & Lieth, H. (1960). Klimadiagramm-Weltatlas. VEB Gustav Fischer Verlag, Jena.

See Also

Download climate data: ce_download()

Examples

Run this code
# Step 1. Import the Italian Biome polygon data
# Step 2. Run the download function
# Step 3. Run the extract function
#* See ce_download & ce_extract documentation

# Steps 1, 2 & 3 can be skipped by loading the extracted data (it_data)
data("it_data", package = "climenv")

# Step 4. Visualise the climatic envelope using a Walter-Lieth diagram

plot_wl(data = it_data, geo_id = "NEM")

Run the code above in your browser using DataLab