Learn R Programming

pcds (version 0.1.8)

plot.Patterns: 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 Patterns
plot(x, asp = NA, xlab = "x", ylab = "y", ...)

Value

None

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.

See Also

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

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab