plotalt2 {DEXiR} | R Documentation |
plotalt2
Description
Draw a scatterpolot of alternatives
with attribute1
and attribute2
on the
x
and y
axis, respectively.
Usage
plotalt2(
model,
attribute1,
attribute2,
alternatives = NULL,
colors = NULL,
pch = 20,
size = 5,
margins = NULL,
lm = NULL,
pos = 4,
offset = 1,
...
)
Arguments
model |
A DexiModel object. Required. |
attribute1 |
First attribute. It may be an DexiAttribute object or
an argument to |
attribute2 |
Second attribute. It may be an DexiAttribute object or
an argument to |
alternatives |
A |
colors |
|
pch |
Plotting character, see |
size |
|
margins |
|
lm |
|
pos |
A position specifier for legent text, see |
offset |
When |
... |
Optional parameters passed to |
Details
Standard scatterplot graphics::plot()
is used.
Continuous attributes are not supported.
Value
Draws a chart.
Examples
# Load "Car.dxi"
CarDxi <- system.file("extdata", "Car.dxi", package = "DEXiR")
Car <- read_dexi(CarDxi)
# Plot all Car$alternatives with respect to "PRICE" and "TECH.CHAR." attributes
plotalt2(Car, "PRICE", "TECH.CHAR.")
# Plot the first Car alternative with respect to "BUY.PRICE" and "MAINT.PRICE" attributes
plotalt2(Car, "BUY.PRICE", "MAINT.PRICE", 1)