crplot: crplot

Description Usage Arguments Value Author(s) Examples

View source: R/crplot.R

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

1
2
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'.

Author(s)

Daryanaz Dargahi

Examples

1
2
3
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')

Example output



Prize documentation built on April 28, 2020, 7:48 p.m.