plotalt1 {DEXiR} | R Documentation |
plotalt1
Description
Plot alternatives
with respect to a single attribute
.
Usage
plotalt1(
model,
attribute = model$first(),
alternatives = NULL,
colors = c("red", "black", "green"),
pch = 20,
size = 5,
linetype = 2,
margins = NULL,
lm = NULL,
...
)
Arguments
model |
A DexiModel object. Required. |
attribute |
A single DexiAttribute selector. It may be an DexiAttribute object or
an argument to |
alternatives |
A |
colors |
|
pch |
Plotting character, see |
size |
|
linetype |
|
margins |
|
lm |
|
... |
Optional parameters passed to |
Details
Standard scatterplot base::plot is used.
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 "TECH.CHAR." attribute
plotalt1(Car, "TECH.CHAR.")
# Plot the first Car alternative with respect to "MAINT.PRICE" attribute
plotalt1(Car, "MAINT.PRICE", 1)