Learn R Programming

pcds (version 0.1.1)

plot.Uniform: Plot a Uniform object

Description

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

Usage

# S3 method for 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 y axis to x-axis y/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 x and y axes in the 2D case, and x, y, and z 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

Run this code
# NOT RUN {
n<-10 #try also 100
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)

# }

Run the code above in your browser using DataLab