Learn R Programming

eaf (version 2.3)

attsurf2df: Convert a list of attainment surfaces to a data.frame

Description

Convert a list of attainment surfaces to a single data.frame.

Usage

attsurf2df(x)

Value

A data.frame with as many columns as objectives and an additional column percentiles.

Arguments

x

(list()) List of data.frames or matrices. The names of the list give the percentiles of the attainment surfaces. This is the format returned by eafplot() (and the internal function compute.eaf.as.list).

Examples

Run this code

data(SPEA2relativeRichmond)
attsurfs <- eafplot (SPEA2relativeRichmond, percentiles = c(0,50,100),
                     xlab = expression(C[E]), ylab = "Total switches",
                     lty=0, pch=21, xlim = c(90, 140), ylim = c(0, 25))
attsurfs <- attsurf2df(attsurfs)
text(attsurfs[,1:2], labels = attsurfs[,3], adj = c(1.5,1.5))

Run the code above in your browser using DataLab