plot.Uniform {pcds}R Documentation

Plot a Uniform object

Description

Plots the points generated from the uniform distribution together with the support region

Usage

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

Arguments

x

Object of class Uniform.

asp

A numeric value, giving the aspect ratio for yy-axis to xx-axis y/xy/x for the 2D case, it is redundant in the 3D case (default is NA), see the official help for asp by typing "? asp".

xlab, ylab, zlab

Titles for the xx and yy axes in the 2D case, and xx, yy, and zz axes in the 3D case, respectively (default is xlab="x", ylab="y", and zlab="z").

...

Additional parameters for plot.

Value

None

See Also

print.Uniform, summary.Uniform, and print.summary.Uniform

Examples


n<-10 #try also 20, 100, and 1000
A<-c(1,1); B<-c(2,0); C<-c(1.5,2);
Tr<-rbind(A,B,C)

Xdt<-runif.tri(n,Tr)
Xdt
plot(Xdt,asp=1)



[Package pcds version 0.1.8 Index]