Description Usage Arguments Value Examples
View source: R/efficiency_plots.R
This function returns a jitter plot from ggplot2
. This graphic shows how DMUs are grouped into leaf nodes in a model built using the EAT
function. Each leaf node groups DMUs with the same level of resources. The dot and the black line represent, respectively, the mean value and the standard deviation of the scores of its node. Additionally, efficient DMU labels always are displayed based on the model entered in the scores_model
argument. Finally, the user can specify an upper bound upn
and a lower bound lwb
in order to show, in addition, the labels whose efficiency score lies between them.
1  efficiencyJitter(object, df_scores, scores_model, upb = NULL, lwb = NULL)

object 
An 
df_scores 

scores_model 
Mathematical programming model to calculate scores.

upb 
Numeric. Upper bound for labeling. 
lwb 
Numeric. Lower bound for labeling. 
Jitter plot with DMUs and scores.
1 2 3 4 5 6 7  simulated < X2Y2.sim(N = 50, border = 0.2)
EAT_model < EAT(data = simulated, x = c(1,2), y = c(3, 4))
EAT_scores < efficiencyEAT(data = simulated, x = c(1, 2), y = c(3, 4), object = EAT_model,
scores_model = "BCC.OUT", digits = 2, na.rm = TRUE)
efficiencyJitter(object = EAT_model, df_scores = EAT_scores, scores_model = "BCC.OUT")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.