Learn R Programming

lfl (version 2.2.0)

plot.fsets: Plot membership degrees stored in the instance of the S3 class fsets() as a line diagram.

Description

This function plots the membership degrees stored in the instance of the fsets() class. Internally, the membership degrees are transformed into a time-series object and viewed in a plot using the ts.plot() function. This function is useful mainly to see the shape of fuzzy sets on regularly sampled inputs.

Usage

# S3 method for fsets
plot(x, ...)

Value

Result of the ts.plot() method.

Arguments

x

An instance of class fsets()

...

Other arguments that are passed to the underlying ts.plot() function.

Author

Michal Burda

See Also

fsets(), fcut(), lcut(), ts.plot()

Examples

Run this code
d <- lcut(0:1000/1000, name='x')
plot(d)

# Additional arguments are passed to the ts.plot method
# Here thick lines represent atomic linguistic expressions,
# i.e. ``small'', ``medium'', and ``big''.
plot(d,
     ylab='membership degree',
     xlab='values',
     gpars=list(lwd=c(rep(1, 3), 5, rep(1, 5), 5, rep(1, 7), 5, rep(1,4))))

Run the code above in your browser using DataLab