MMAgeezer
MMAgeezer t1_j2dqnod wrote
Reply to comment by IndeterminateYogurt in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
Actually, if the plot is already using transformed data inside the ‘aes()’ call, then you should be able to just use this if I’m not mistaken:
> geom_smooth(formula = y ~ x, method='lm')
MMAgeezer t1_j2di87f wrote
Reply to comment by IndeterminateYogurt in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
Ah okay cool, this was just the first one that came up upon searching! It has really nice features like cached data and the ability to search for indicators with regex.
MMAgeezer t1_j2di1rp wrote
Reply to comment by IndeterminateYogurt in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
If you haven’t checked out the ‘ggrepel’ author’s vignette I would highly recommend it!
MMAgeezer t1_j2dhw56 wrote
Reply to comment by IndeterminateYogurt in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
Can you do that again with log-log transformations in the linear regression, to match the plot and idea behind using this kind of plot? Thanks!
MMAgeezer t1_j2dgznv wrote
Reply to comment by [deleted] in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
Most countries actually don’t even reach the 2% guideline.
Only the UK, US, and Greece have met the target every year for the last 8 years.
MMAgeezer t1_j2dgsrb wrote
Reply to comment by IndeterminateYogurt in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
Thank you for the introduction to wbstats, it looks really handy!
MMAgeezer t1_j2e7kbr wrote
Reply to comment by remembermereddit in [OC] Around 30% of countries spend more than 2% of GDP on their military by IndeterminateYogurt
For anyone reading this:
You can display a list of colourblind pallets directly in RStudio, run the following with RColorBrewer installed: