plot
for objects of class average_ranks
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.
# 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), ...
)
An object of class average_ranks
.
A boolean attribute that indicates if the interval is plotted in background (TRUE
) or in foreground (FALSE
).
Color of the interval.
The type of the lines representing the range, the values are the same of the attribute lty
of the plot.default
function.
Width of the lines representing the range.
Attribute of the function plot.default
, here "p"
by default.
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".
Attribute of the function plot.default
, here ""
by default.
Attribute of the function plot.default
, here "Average rank"
by default.
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.
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.
Attribute of the function plot.default
, here c(1, 1, 1)
by default.
Other arguments of the function plot.default
.
# 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