Learn R Programming

Prize (version 1.2.0)

crplot: crplot

Description

Plotting the consistency ratio (CR) of individual judgements. According to Satty, a pairwise comparison matrix is considered to be consistent if CR is equal or less than 0.1. Therefore, CRs equal to or less than 0.1 are colored in green (Pass) and CRs greater than 0.1 are colored in red (Failed).

Usage

crplot(srcfile, fontsize = 15, xcex = 10, ycex = 10, angle = 90, xlab = "ID", ylab = "ICR", main = NULL)

Arguments

srcfile
a numeric vector of individual CR
fontsize
the font size of plot title, x and y axis labels. The default value is 15.
xcex,ycex
the font size of x and y axis, respectively. The default values is 10.
angle
the angle of the labels on x axis
xlab,ylab
the label to be shown on the x and y axis, respectively.
main
the plot title

Value

An object created by 'ggplot'.

Examples

Run this code
data <- c(0.1132, 0.0142, 0.0324, 0.10075, 0.0883)
names(data) <- c('individual_1','individual_2','individual_3','individual_4','individual_5')
crplot(data, fontsize = 15, xcex = 10, ycex = 10, xlab = 'ID', ylab = 'ICR', main = 'Individuals consistency ratio')

Run the code above in your browser using DataLab