plotalt2 | R Documentation |
Draw a scatterpolot of alternatives
with attribute1
and attribute2
on the
x
and y
axis, respectively.
plotalt2(
model,
attribute1,
attribute2,
alternatives = NULL,
colors = NULL,
pch = 20,
size = 5,
margins = NULL,
lm = NULL,
pos = 4,
offset = 1,
...
)
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 |
Standard scatterplot graphics::plot()
is used.
Continuous attributes are not supported.
Draws a chart.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.