Learn R Programming

parsec (version 1.2.0)

plot.average_ranks: Method od function plot for objects of class average_ranks

Description

Starting from the output of the function average_ranks, it provides a plot that for each each element the poset shows the average rank and the rank interval.

Usage

# S3 method for average_ranks
plot(x,
    range.first = TRUE, range.col = "black", range.lty = 1,
    range.lwd = 1, type = "p", ylim = c(max(x$sup), 1),
    xlab = "", ylab = "Average rank", pch = c(16, 3, 3),
    col = "black", cex = c(1, 1, 1), ...
)

Arguments

x

An object of class average_ranks.

range.first

A boolean attribute that indicates if the interval is plotted in background (TRUE) or in foreground (FALSE).

range.col

Color of the interval.

range.lty

The type of the lines representing the range, the values are the same of the attribute lty of the plot.default function.

range.lwd

Width of the lines representing the range.

type

Attribute of the function plot.default, here "p" by default.

ylim

Attribute of the function plot.default, here c(max(x$sup), 1) by default, that means that the axis of the ordinates is reversed, since rank 1 usually means that the element of the poset is "more important".

xlab

Attribute of the function plot.default, here "" by default.

ylab

Attribute of the function plot.default, here "Average rank" by default.

pch

Attribute of the function plot.default, here c(16, 3, 3) by default. This method uses the matplot function to plot the average ranks and their range. The first first value is referred to the point character of the average rank, the other two are referred to the point characters of the range.

col

Attribute of the function plot.default, here ""black"" by default. The average ranks and their ranges are of the same colors, but similarly to the pch, it is possible to provide a vector to differentiate their colors.

cex

Attribute of the function plot.default, here c(1, 1, 1) by default.

Other arguments of the function plot.default.

See Also

average_ranks, plot.default, matplot

Examples

Run this code
# NOT RUN {
profiles <- var2prof(varlen = c(3, 2, 4))
Z <- getzeta(profiles)
res <- average_ranks(Z)
plot(res)
# }

Run the code above in your browser using DataLab