Learn R Programming

lfl (version 1.4.2)

plot.fsets: Plot a 'fsets' object

Description

Plot the membership degrees stored in the instance of class fsets using the line diagram.

Usage

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

Arguments

x

An instance of class fsets

...

Other arguments that are passed to the ts.plot function.

Value

Result of the ts.plot method.

Details

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.

See Also

fsets, fcut, lcut, ts.plot

Examples

Run this code
# NOT RUN {
d <- lcut3(slices(0, 1, 1000), name='x')

# plot the resulting fuzzy sets
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(5, rep(1, 7), 5, rep(1, 4), 5, rep(1, 7))))
# }

Run the code above in your browser using DataLab