externalPoint: Information Outside the Experimental Plot

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/externalPoint.R

Description

Pixels with information outside the experimental plot under study. The environment outside the study area is important for its explanation of the experimental response.

Usage

1
externalPoint(models,R)

Arguments

models

list regression linear models, output borderPoint function

R

Raster image

Details

out points

Value

outpoints

coordenate matrix

Author(s)

Felipe de Mendiburu

See Also

borderPoint, fixedPoint, fourPoint, imageField, designRaster, movePlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(rPAex)
#
# for image "tiff" format, see rPAex document
# r <- fileRaster(tiff)
#
crop <- system.file("external/corn.csv", package="rPAex")
s<-read.csv(crop,header = TRUE)
r <- raster::rasterFromXYZ(s)
raster::image(r,useRaster=FALSE,main="Corn crop\nArea outside the experimental plot")
#P<-locator(3)
P<-list(x=c(287705.9, 287711.8, 287712.8),y=c(8664203.15, 8664204.8, 8664193.67))
Q<-fourPoint(P)
polygon(Q,border = "blue")
text(Q)
models<-borderPoint(Q)
out<-externalPoint(models,r)
points(out[,1],out[,2],pch=".")

rPAex documentation built on March 26, 2020, 9:36 p.m.