plot.fsets: Plot membership degrees stored in the instance of the S3...

View source: R/fsets.R

plot.fsetsR Documentation

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 class 'fsets'
plot(x, ...)

Arguments

x

An instance of class fsets()

...

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

Value

Result of the ts.plot() method.

Author(s)

Michal Burda

See Also

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

Examples

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))))

lfl documentation built on Sept. 8, 2022, 5:08 p.m.