From e451617d179f2092e4bada2738a8615709d2459e Mon Sep 17 00:00:00 2001 From: "R.Andres Castaneda Aguilar" Date: Mon, 9 Dec 2024 11:20:03 -0500 Subject: [PATCH] fix legend in chart --- vignettes/articles/get-gd-example.Rmd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vignettes/articles/get-gd-example.Rmd b/vignettes/articles/get-gd-example.Rmd index 2832eb4..a1f135e 100644 --- a/vignettes/articles/get-gd-example.Rmd +++ b/vignettes/articles/get-gd-example.Rmd @@ -95,7 +95,7 @@ get_gd( cum_population = datt_rural$p, estimate = "lorenz", lorenz = "lb", - n_bins = 100, + n_bins = 10, server = "dev" ) ``` @@ -155,10 +155,12 @@ ggplot(poverty_stats, aes(x = poverty_line)) + labs( title = "Poverty Measures vs. Poverty Line, Rural India 1983", x = "Poverty Line", - y = "Measure Value", + y = "Poverty Measure (FGT indices)", color = "Poverty Measure" ) + - theme_minimal() + theme_minimal() + + theme(legend.position = "bottom", + legend.title = element_blank()) ``` ### Lorenz Curve Data