st_hexbin_utm: Retrieve of set of hex-binned polygons for the given xyz data

View source: R/hexbin.R

st_hexbin_utmR Documentation

Retrieve of set of hex-binned polygons for the given xyz data

Description

Retrieve of set of hex-binned polygons for the given xyz data

Usage

st_hexbin_utm(
  x,
  y,
  z,
  fun = c("mean", "count", "median")[2],
  crs = ifelse(use_wkt("sf"), "epsg:4326",
    "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"),
  utm_crs = ifelse(use_wkt("sf"), "epsg:32619", "+proj=utm +zone=19 ellps=WGS84"),
  na.rm = TRUE,
  ...
)

Arguments

x

a vector of lon-locations

y

a vector of lat-locations

z

a vector of values associated with each location

fun

character the function used to process the cell values currently only 'mean', 'median', or 'count' (default)

crs

the projection string for final data

utm_crs

intermediary UTM projection string

na.rm

logical passed through to user's selected function

...

further arguments for hexbin

Value

a POLYGON sf data frame

See Also

hexbin docs

nice overview


BigelowLab/rasf documentation built on July 18, 2022, 10:19 p.m.