Learn R Programming

DecisionAnalysis (version 1.1.0)

SAVF_cat_plot: Single Attribute Value Function (SAVF) Categorical Plot

Description

: Plots the categorical Single Attribute Value Function (SAVF) graph. Categories may be any value, but category scores must be numeric. The function checks to ensure the total of scores sums to one.

Usage

SAVF_cat_plot(categories, scores, fillcolor = "blue")

Arguments

categories

Vector of categories

scores

Numeric vector of catgory scores

fillcolor

Fill color for the chart, default is blue

Value

Categorical SAVF graph

Examples

Run this code
# NOT RUN {
SAVF_cat_plot(c("Tom", "Bill" ,"Jerry"), c(0.1, 0.25, 0.65))

# }

Run the code above in your browser using DataLab