plotalt1 | R Documentation |
Plot alternatives
with respect to a single attribute
.
plotalt1(
model,
attribute = model$first(),
alternatives = NULL,
colors = c("red", "black", "green"),
pch = 20,
size = 5,
linetype = 2,
margins = NULL,
lm = NULL,
...
)
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 |
Standard scatterplot base::plot is used.
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 "TECH.CHAR." attribute
plotalt1(Car, "TECH.CHAR.")
# Plot the first Car alternative with respect to "MAINT.PRICE" attribute
plotalt1(Car, "MAINT.PRICE", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.