Learn R Programming

GeoRange (version 0.1.0)

RandHorseShoe: Function to randomly generate points within a horseshoe-shape

Description

Function to randomly generate points within a horseshoe-shape

Usage

RandHorseShoe(center = c(0, 0), npts = 100, HorseShoeShape, HRatio = 1.5,
  RadRatio = 0.5)

Arguments

center

- Arrary containint the coordinates of the center of circular portion of the horseshoe in decimal degrees

npts

- Integer value indicating the number of points to generate within the horseshoe shape

HorseShoeShape

- Object containing the outline of a horseshoe shape, output from PtsAlgHorseShoe function

HRatio

- The ratio of the lower rectangle portions of the horseshoe to the outer radius of the circular portion of the horseshoe

RadRatio

- The ration of the of the outer to inner radius of the circular part of the horseshoe shape

Value

Returns a 2-dimensional array of decimal degree coordinates within the horseshoe shape and the total area of the shape

Examples

Run this code
HorseShoeTest<-PtsAlgHorseShoe(z=2000,spacing=1,endAngles=c(-90,90))
RandHorseShoe(center=c(0,0),npts=100,HorseShoeShape=HorseShoeTest)

Run the code above in your browser using DataLab