Learn R Programming

parsec (version 1.2.0)

plot.parsec: Plot outouts of PARSEC function evaluation.

Description

Different representation of the results obtained by the evaluation function.

Usage

# S3 method for parsec
plot(
    x,
    which = c("Hasse", "threshold", "identification", "rank", "gap"),
    ask = dev.interactive(),
    shape = c("square", "circle", "equispaced"),
    noise = FALSE,
    ...
)

Arguments

x

an object of S3 class parsec, output of the evaluation function.

which

the names of the graphs to be plotted (all by default), the user can choose between

  • Hasse, the Hasse diagram of the poset, see plot.cover for details,

  • threshold, the plot relative frequencies of the times a profile is used as threshold in the sampled linear extensions. This result is useful for posterior valuation of the poset threshold,

  • rank, representation of the rank distribution for each profile (X-axis), through bar-plots, where the heights of the blocks represents the relative frequencies (total height equal to one for all the profiles) and the color represents the rank: white rank one, black the higher rank and a gray scale for the middle ranks,

  • gap, a unified representation of the point relative poverty gap (from zero downward) and of the point relative wealth gap (from zero upward). The horizontal lines represents the average poverty gap and the average wealth gap. The darker vertical dashed lines represent the threshold profiles.

ask

boolean value indicating whether the system has to ask before changing the plot.

shape

the shape of the Hasse diagram, see plot.cover for details.

noise

noise in the shape of the Hasse diagram. See vertices.

further arguments for the plot.cover function.

See Also

evaluation, plot.cover

Examples

Run this code
# NOT RUN {
profiles <- var2prof(varlen = c(3, 2, 4))
threshold <- c("311", "112")

res <- evaluation(profiles, threshold, nit = 10^3)

plot(res)
# }

Run the code above in your browser using DataLab