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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fsets.R

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

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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))))

beerda/lfl documentation built on Oct. 17, 2020, 8:57 p.m.