l4_plotagb: Plot AGBD data from GEDI level 4A

View source: R/l4_plotagb.R

l4_plotagbR Documentation

Plot AGBD data from GEDI level 4A

Description

The function plot the location of GEDI footprints and AGBD values against the elevation. Note that the coordinate reference system must be lon/lat (EPSG 4326).

Usage

l4_plotagb(
  gediL4,
  beam_id = "BEAM0000",
  tct = NULL,
  type = c("location", "distribution", "both"),
  ...
)

Arguments

gediL4

data.table or sf_object: obtained with the function l4_getmulti.

beam_id

Character: one of "BEAM0000" "BEAM0001" "BEAM0010" "BEAM0011" "BEAM0101" "BEAM0110" "BEAM1000" "BEAM1011" or "all".

tct

Numeric: tree cover threshold from 0 to 100 (in %).

type

Character: one of "location","distribution" or "both". The type of plot returned. If missing it will be set to "both".

...

Others argument to pass to MASS::kde2d inside the function get_density. Only used if type="distribution" or "both". Usually these arguments are: n,h.

Value

Returns a ggplot object. See ggplot2::ggplot package.

See Also

l4_plotprofile

Examples

data("gedil4")
#plot location of footprints
l4_plotagb(gedil4,type="location")
#plot distribution of agbd based on elevation
l4_plotagb(gedil4,type="distribution")
#change density parameters
l4_plotagb(gedil4,type="distribution",n=200,h=c(200,200))
#plot both types
l4_plotagb(gedil4,type="both",n=200,h=c(200,200))
#plot location of footprint in tree cover >50%
l4_plotagb(gedil4,type="location",tct=50)

VangiElia/GEDI4R documentation built on April 8, 2023, 6:13 p.m.