climograph: Create Climograph

View source: R/climograph.R

climographR Documentation

Create Climograph

Description

Function to plot climograph of a given location in the world.

Usage

climograph(
  name = "worldclim",
  res = 10,
  lon = 39.5,
  lat = 40.5,
  path = "",
  download = TRUE,
  style = "normal",
  save = FALSE,
  filename = "Rplots.pdf",
  height = 7,
  width = 7,
  bg = "transparent"
)

Arguments

name

character. Name of dataset, default is worldclim.

res

numeric. One of 0.5, 1, 5, 10. Resolution of worldclim data to use, default is 10.

lon

Longitude of location you want to create climograph for.

lat

Latitude of location you want to create climograph for.

path

Character. Path name indicating where to store the data. Default is the current working directory.

download

Logical. If TRUE data will be downloaded if not locally available

style

character. normal, plotly or ggplot. Defaults to normal.

save

True/False. If Plot should be saved to file.

filename

the name of the output file.

height

the height of the device in inches.

width

the width of the device in inches.

bg

the initial background colour, default is transparent.

Value

Returns a climograph plot with coordinates (x,y) and corresponding raster values.

Examples

## Not run: 
climograph(lon=39.5, lat=40.5)

## End(Not run)

RS-eco/ggmap2 documentation built on Dec. 7, 2022, 2:02 a.m.