Learn R Programming

FRCI (version 0.1.0)

plot.psi: Plot for "psi" type objects.

Description

Plot for "psi" type objects.

Usage

# S3 method for psi
plot(x, ..., psi2 = NULL, gamma = 0.95, xlim = NULL, ylim = NULL, type = "psi")

Value

No return value, called for side effects

Arguments

x

A list containing the following information.

[[1]]

the membership function

[[2]]

the name of the sample distribution

[[3]]

sample size

[[4]]

the name of method

[[5]]

standard deviation (for the case of normal distribution).

[[6]]

the upper and lower bound function of the support of the membership function.

...

generic plot parameter.

psi2

Another list containing the following information.

[[1]]

the membership function

[[2]]

the name of the sample distribution

[[3]]

sample size

[[4]]

the name of method

[[5]]

standard deviation (for the case of normal distribution).

[[6]]

the upper and lower bound function of the support of the membership function.

gamma

the confidence level.

xlim

A vector containing the upper and lower values for the theta.

ylim

A vector containing the values of omega to be included in the plot.

type

The type of the plot, by default is the menbership function, and "length" for the expected length plot.

Examples

Run this code
x<-psi("GM",n=10)
plot(x)
plot(x,type="length")

x<-psi(0.5,n=10)
plot(x)
plot(x,type="length")

Run the code above in your browser using DataLab