powered by
Patterns
object
Plots the points generated from the pattern (color coded for each class) together with the study window
# S3 method for Patterns plot(x, asp = NA, xlab = "x", ylab = "y", ...)
None
Object of class Patterns.
A numeric value, giving the aspect ratio for \(y\)-axis to \(x\)-axis \(y/x\) (default is NA), see the official help for asp by typing "? asp".
numeric
NA
asp
? asp
Titles for the \(x\) and \(y\) axes, respectively (default is xlab="x" and ylab="y").
xlab="x"
ylab="y"
Additional parameters for plot.
plot
print.Patterns, summary.Patterns, and print.summary.Patterns
print.Patterns
summary.Patterns
print.summary.Patterns
nx<-20; #try also 100 and 1000 ny<-3; #try also 1 e<-.15; Y<-cbind(runif(ny),runif(ny)) #with default bounding box (i.e., unit square) Xdt<-rseg.disc(nx,Y,e) Xdt plot(Xdt,asp=1)
Run the code above in your browser using DataLab