SpatialCircle: Creates a circle of radius r around a specified point.

Description Usage Arguments Author(s) See Also Examples

View source: R/SpatialCircle.r

Description

Returns a SpatialLines object, that defines a circle of radius r around a specified point.

Usage

1
SpatialCircle(x,y,r,n=100,proj4str)

Arguments

x, y

x and y coordinates of the circle

r

radius (of the same scale as plotting window)

n

precision indicator of the circle.

proj4str

projection string.

Author(s)

Robert K. Bauer

See Also

get.avg.bathy

Examples

1
2
3
4
5
6
7
8
9
## Example 1: load & plot bathymetry of the Baltic Sea, defined by longitudes and latidtues
lon <- c(9, 31)
lat <- c(53.5, 66)
# bathy <- get.bathy(lon=lon, lat=lat, main="Baltic Sea", cbpos='r')
plotmap(lon=lon, lat=lat)
spc <- SpatialCircle(x= 20,y = 57.5,r=1)
plot(spc,add=TRUE)
# get.avg.bathy(c(20,57.5), radius = 1, bathy = bathy)
# get.avg(c(20,57.5), radius = 1, unit="km",raster = bathy)

oceanmap documentation built on March 23, 2020, 5:06 p.m.