Description Usage Arguments References See Also Examples
Plots a concentration curve.
1 |
x |
Numeric vector with non-negative values. |
y |
Numeric vector used for the ranking of vector |
w |
Numeric vector of sampling weigths (optional). |
xlab |
Title for the x-axis. |
ylab |
Title for the y-axis. |
add |
If |
grid |
If |
... |
Further arguments to be used for drawing the concentration curve
(see |
O'Donnell O., van Doorslaer E., Wagstaff A., Lindelow M. (2008) Analyzing Health Equity Using Household Survey Data. World Bank, 220 p.
1 2 3 4 5 6 7 | data(hhbudgets)
curveConcent(x=hhbudgets[, "transporte"], y=hhbudgets[,"ingreso"], w=hhbudgets[,"factor"], col="red", xlab="Ranking by income")
curveConcent(x=hhbudgets[, "mantenimiento"], y=hhbudgets[,"ingreso"], w=hhbudgets[,"factor"], col="blue", add=TRUE)
curveConcent(x=hhbudgets[, "publico"], y=hhbudgets[,"ingreso"], w=hhbudgets[,"factor"], col="green", add=TRUE)
title(main="Transport expenditures")
legend("topleft", legend = c("All transport", "Private: Maintenance and repair", "Public transport"), col=c("red", "blue", "green"), lty=rep(1, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.