filterToGeolocationViewport: Filter Data Table to Geolocation Viewport

View source: R/utils.R

filterToGeolocationViewportR Documentation

Filter Data Table to Geolocation Viewport

Description

This function will filter a data.table to the specified latitude and longitude values.

Usage

filterToGeolocationViewport(.dt, latitude, longitude, viewport)

Arguments

.dt

data.table with columns for latitude and longitude

latitude

Character vector specifying name of latitude column

longitude

Character vector specifying name of longitude column

viewport

List of lists specifying the geolocation viewport.

Value

data.table of filtered values

Geolocation Viewport Structure

This is a list of lists taking the form:
*latitude
**xMin = numeric
**xMax = numeric
*longitude
**left = numeric
**right = numeric


VEuPathDB/plot.data documentation built on Feb. 20, 2025, 6:33 p.m.