FeatureAxis(x, fac = 1, flipit = FALSE, twixt = FALSE)## S3 method for class 'FeatureAxis':
plot(x, ...)
## S3 method for class 'FeatureAxis':
summary(object, ...)
FeatureAxis
this is an object of class plot.FeatureAxis
, this is the value returned from FeatureAxis
.FeatureAxis
.fac
(e.g., if the grid points are k by k km each, then one could set this to k so that the resulting lengths are in terms of km rather than grid points.plot.FeatureAxis
these are additional arguments to the plot
function. Not used by summary.FeatureAxis
.plot
or summary
method functions.convexhull
function from the sma
funciton from package psp
object (see as.psp
from angles.psp
and lengths.psp
, resp., from The minor axis anlge is easily found after rotating the major axis 90 degrees using rotate.psp
from rotate.owin
from bounding.box
from psp
object is then created using the mid point of the major axis (which should be close to the centroid of the feature) using as.psp
and midpoints.psp
from
See the help files for the above mentioned functions for references, etc.
owin
, convexhull
, sma
, as.psp
, angles.psp
, rotate.owin
, rotate.psp
, bounding.box
, midpoints.psp
, lengths.psp
, infline
, clip.infline
, deltamm
, FeatureSuite
, convthresh
, disjointer
, connected
, tiles
, tess
, solutionset
data(ExampleSpatialVxSet)
x <- ExampleSpatialVxSet$vx
look <- disk2dsmooth(x,5)
u <- quantile(look,0.99)
sIx <- matrix(0, 100, 100)
sIx[ look > u] <- 1
look2 <- disjointer(sIx)[[1]]
look2 <- flipxy(look2)
tmp <- FeatureAxis(look2)
plot(tmp)
summary(tmp)
data(pert000)
data(pert004)
data(ICPg240Locs)
hold <- make.SpatialVx(pert000, pert004,
loc=ICPg240Locs, projection=TRUE, map=TRUE,
field.type="Precipitation", units="mm/h",
data.name=c("Perturbed ICP Cases", "pert000", "pert004"))
look <- convthresh(hold, smoothpar=10.5)
par(mfrow=c(1,2))
plot(look)
par(mfrow=c(2,2))
image.plot(look$X.labeled)
image.plot(look$Y.labeled)
# The next line will likely be very slow.
look2 <- deltamm(x=look, verbose=TRUE)
image.plot(look2$X.labeled)
image.plot(look2$Y.labeled)
look2$mm.new.labels # the first seven features are matched.
ang1 <- FeatureAxis(look2$X.feats[[1]])
ang2 <- FeatureAxis(look2$Y.feats[[1]])
plot(ang1)
plot(ang2)
summary(ang1)
summary(ang2)
ang3 <- FeatureAxis(look2$X.feats[[4]])
ang4 <- FeatureAxis(look2$Y.feats[[4]])
plot(ang3)
plot(ang4)
summary(ang3)
summary(ang4)
Run the code above in your browser using DataLab