Plot a Fuzzy Number
The function aims to provide a similar look-and-feel to the
built-in plot.default
and curve
function.
## S4 method for signature 'FuzzyNumber,missing' plot(x, y, from=NULL, to=NULL, n=101, at.alpha=NULL, draw.membership.function=TRUE, draw.alphacuts=!draw.membership.function, xlab=NULL, ylab=NULL, xlim=NULL, ylim=NULL, type="l", col=1, lty=1, pch=1, lwd=1, shadowdensity=15, shadowangle=45, shadowcol=col, shadowborder=NULL, add=FALSE, ...) ## S4 method for signature 'TrapezoidalFuzzyNumber,missing' plot(x, y, from=NULL, to=NULL, draw.membership.function=TRUE, draw.alphacuts=!draw.membership.function, xlab=NULL, ylab=NULL, xlim=NULL, ylim=NULL, type="l", col=1, lty=1, pch=1, lwd=1, add=FALSE, ...) ## S4 method for signature 'PiecewiseLinearFuzzyNumber,missing' plot(x, y, from=NULL, to=NULL, draw.membership.function=TRUE, draw.alphacuts=!draw.membership.function, xlab=NULL, ylab=NULL, xlim=NULL, ylim=NULL, type="l", col=1, lty=1, pch=1, lwd=1, add=FALSE, ...) ## S4 method for signature 'DiscontinuousFuzzyNumber,missing' plot(x, y, from=NULL, to=NULL, n=101, draw.membership.function=TRUE, draw.alphacuts=!draw.membership.function, xlab=NULL, ylab=NULL, xlim=NULL, ylim=NULL, type="l", col=1, lty=1, pch=1, lwd=1, add=FALSE, ...)
x |
a fuzzy number |
y |
not used |
from |
numeric; |
to |
numeric; |
n |
numeric; number of points to probe |
at.alpha |
numeric vector; give exact alpha-cuts at which linear interpolation should be done |
draw.membership.function |
logical; you want membership function ( |
draw.alphacuts |
logical; defaults |
xlab |
character; x-axis label |
ylab |
character; y-axis label |
xlim |
numeric; |
ylim |
numeric; |
type |
character; defaults |
col |
see |
lty |
see |
pch |
see |
lwd |
see |
shadowdensity |
numeric; for shadowed sets; |
shadowangle |
numeric; for shadowed sets; |
shadowcol |
color specification, see |
shadowborder |
numeric; for shadowed sets; |
add |
logical; add another FuzzyNumber to existing plot? |
... |
further arguments passed to |
Note that if from > a1
then it is set to a1
.
Returns nothing really interesting.
Other FuzzyNumber-method: Arithmetic
,
FuzzyNumber-class
,
FuzzyNumber
, alphaInterval
,
alphacut
, ambiguity
,
as.FuzzyNumber
,
as.PiecewiseLinearFuzzyNumber
,
as.PowerFuzzyNumber
,
as.TrapezoidalFuzzyNumber
,
as.character
, core
,
distance
, evaluate
,
expectedInterval
,
expectedValue
,
integrateAlpha
,
piecewiseLinearApproximation
,
show
, supp
,
trapezoidalApproximation
,
value
, weightedExpectedValue
,
width
Other PiecewiseLinearFuzzyNumber-method: Arithmetic
,
PiecewiseLinearFuzzyNumber-class
,
PiecewiseLinearFuzzyNumber
,
^,PiecewiseLinearFuzzyNumber,numeric-method
,
alphaInterval
, arctan2
,
as.PiecewiseLinearFuzzyNumber
,
as.PowerFuzzyNumber
,
as.TrapezoidalFuzzyNumber
,
as.character
,
expectedInterval
, fapply
,
maximum
, minimum
,
necessityExceedance
,
necessityStrictExceedance
,
necessityStrictUndervaluation
,
necessityUndervaluation
,
possibilityExceedance
,
possibilityStrictExceedance
,
possibilityStrictUndervaluation
,
possibilityUndervaluation
Other TrapezoidalFuzzyNumber-method: Arithmetic
,
TrapezoidalFuzzyNumber-class
,
TrapezoidalFuzzyNumber
,
TriangularFuzzyNumber
,
alphaInterval
,
as.PiecewiseLinearFuzzyNumber
,
as.PowerFuzzyNumber
,
as.TrapezoidalFuzzyNumber
,
expectedInterval
Other DiscontinuousFuzzyNumber-method: DiscontinuousFuzzyNumber-class
,
DiscontinuousFuzzyNumber
,
distance
, integrateAlpha
plot(FuzzyNumber(0,1,2,3), col="gray") plot(FuzzyNumber(0,1,2,3, left=function(x) x^2, right=function(x) 1-x^3), add=TRUE) plot(FuzzyNumber(0,1,2,3, lower=function(x) x, upper=function(x) 1-x), add=TRUE, col=2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.