ggeconodist
ggeconodist copied to clipboard
Syntax question in the example code
Thank you for sharing this project!
I am looking at the sample code, and trying to implement it for my own data, and came across a part that seemed odd syntax-wise in the example about life expectancies. Should there be a trailing comma after ninetieth_col = "#591a4f", in the arguments to eonodist_legend_grob in the code below?
I'm still learning R so please excuse me if this is correct syntax.
grid.newpage() gmgg %>% add_econodist_legend( econodist_legend_grob( tenth_col = "#b07aa1", ninetieth_col = "#591a4f", ), below = "axis-b-1-4", just = "right" ) %>% grid.draw()