plot.Patterns: Plot a 'Patterns' 'object'

plot.PatternsR Documentation

Plot a Patterns object

Description

Plots the points generated from the pattern (color coded for each class) together with the study window

Usage

## S3 method for class 'Patterns'
plot(x, asp = NA, xlab = "x", ylab = "y", ...)

Arguments

x

Object of class Patterns.

asp

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".

xlab, ylab

Titles for the x and y axes, respectively (default is xlab="x" and ylab="y").

...

Additional parameters for plot.

Value

None

See Also

print.Patterns, summary.Patterns, and print.summary.Patterns

Examples

## Not run: 
nx<-10; #try also 100 and 1000
ny<-5; #try also 1
e<-.15;
Y<-cbind(runif(ny),runif(ny))
#with default bounding box (i.e., unit square)

Xdt<-rseg.circular(nx,Y,e)
Xdt
plot(Xdt,asp=1)

## End(Not run)


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.