spT.grid.coords: Grid Coordinates

Description Usage Arguments See Also Examples

View source: R/useful_commands.R

Description

This function is used to obtain Longitude/x and Latitude/y coordinates in a grid set.

Usage

1
2
spT.grid.coords(Longitude = c(max, min),
   Latitude = c(max, min), by = c(NA,NA))

Arguments

Longitude

The maximum and minimum longitude position.

Latitude

The maximum and minimum latitude position.

by

The number of x and y points in each axis.

See Also

spT.geodist.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##

# Load 29 ozone monitoring locations in New York.

data(NYdata)	
coords <- as.matrix(NYdata[,c(2,3)])

# Find the knots coordinates

knots.coords <- spT.grid.coords(Longitude=c(max(coords[,1]),
          min(coords[,1])), Latitude=c(max(coords[,2]),
          min(coords[,2])),by=c(4,4))      
knots.coords

##

jmarca/spTimer documentation built on May 19, 2019, 1:51 p.m.