plot.Uniform: Plot a 'Uniform' 'object'

plot.UniformR 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 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

## Not run: 
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)

## End(Not run)


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