Learn R Programming

pcds (version 0.1.2)

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

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

Run this code
# NOT RUN {
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