Skip to content

DEA -- Extract the Frontier and ggplot2

2 messages · Lorenzo Isella, Roman Luštrik

#
Hello,
Thanks for your suggestion, but it is does not help me much.
Indeed, in this case where RTS="vrs", things are easy as you say.
However, try for instance to change the technology assumption
(e.g. replace it with RTS="drs" everywhere in my script) and you'll
see that things are not that simple.
I really need a way to extract the frontier -- it is plotted, so it is
calculated and it has to be buried somewhere in the package, just I do
not know where.
Cheers

Lorenzo
On Tue, Aug 02, 2016 at 09:05:15AM +0000, Jose Iparraguirre wrote:
#
Hi,

this is not really a ggplot2 issue, but here goes.

If you look at the source code of the Benchmarking package (here
<https://github.com/cran/Benchmarking/blob/master/R/dea.plot.R>) you will
notice that the function is not very explicit about what to return - so the
returned thing is actually a plotting line (lines()). What you could do is
fork the repository, add your own return statement to include the `hpts`
<https://github.com/cran/Benchmarking/blob/master/R/dea.plot.R#L227> which
could be used to find the correct values in `x` (see for example here
<https://github.com/cran/Benchmarking/blob/master/R/dea.plot.R#L231> how
plotting is done).

After you have the formed repository ready (and pushed to your account),
you can install it through
devtools::install_github("yourname/Benchmarking"). Blesssed thee, open
source.

Cheers,
Roman

On Tue, Aug 2, 2016 at 11:11 AM, Lorenzo Isella <lorenzo.isella at gmail.com>
wrote: