Learn R Programming

morphomap (version 1.5)

morphomapRectangle: morphomapRectangle

Description

Define a rectangular outline

Usage

morphomapRectangle(l = 1, h = 1, n = 1000)

Value

mat matrix with coordinates

Arguments

l

numeric: length of the rectangle

h

numeric: height of the rectangle

n

numeric: number of points along the outline

Author

Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi

Examples

Run this code
extsec<-morphomapRectangle(10,6,100)
intsec<-morphomapRectangle(8,4,100)
plot(extsec,asp=1,type="l")
points(intsec,type="l",col=2)

Run the code above in your browser using DataLab