{"id":14021,"date":"2019-11-02T14:24:38","date_gmt":"2019-11-02T14:24:38","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=14021"},"modified":"2019-11-26T06:36:15","modified_gmt":"2019-11-26T06:36:15","slug":"credit-where-credits-true-hans-rosling","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/11\/credit-where-credits-true-hans-rosling\/","title":{"rendered":"Credit where credit&#8217;s true: Hans Rosling"},"content":{"rendered":"<div style=\"max-width: 854px;\">\n<div style=\"position: relative; height: 0; padding-bottom: 56.25%;\"><iframe loading=\"lazy\" style=\"position: absolute; left: 0; top: 0; width: 100%; height: 100%;\" src=\"https:\/\/embed.ted.com\/talks\/lang\/de\/hans_rosling_on_global_population_growth\" width=\"854\" height=\"480\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe>\n<\/div>\n<\/div>\n<p>The code for the plot is on <a href=\"https:\/\/github.com\/tristanga\/animatedcharts\">Github<\/a> while I suggest to prettify it <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/10\/a-new-animation-of-the-famous-hadcrut4-climate-dataset\/\">using my previous theme<\/a>.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nfor(i in 1962:2015){\r\n  p &lt;- ggplot(mydf_filter&#x5B;mydf_filter$year==i,], aes(fert, life, size = pop, fill=continent)) +\r\n    labs(x=&quot;Fertility Rate&quot;, y = &quot;Life expectancy at birth (years)&quot;, size = &quot;Population (millions)&quot;) + \r\n    xlim(0,10) +\r\n    ylim(30,100) +\r\n    geom_point(alpha=.8,shape = 21 ) +\r\n    scale_color_brewer(type = 'div', palette = 'Spectral') +\r\n    annotate(&quot;text&quot;, label=i, x=9, y=95, size=8.5) + \r\n    scale_size(range = c(1,20), name=&quot;Population (M)&quot;, breaks=c(1,100, 10000))\r\n  fn &lt;- paste(&quot;\/Users\/xxx\/Desktop\/X\/&quot;,str_pad(i-1961, 3, pad = &quot;0&quot;),&quot;.png&quot;,sep=&quot;&quot;)\r\n  ggsave(p, file=fn, width = 9, height = 6)\r\n}\r\n# ffmpeg -framerate 5 -i \/Users\/xxx\/Desktop\/X\/%3d.png -r 5 -pix_fmt yuv420p -y \/Users\/xxx\/Desktop\/X\/Rosling.mp4\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/adRxrTR3b6M\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 04.05.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>The code for the plot is on Github while I suggest to prettify it using my previous theme. for(i in 1962:2015){ p &lt;- ggplot(mydf_filter&#x5B;mydf_filter$year==i,], aes(fert, life, size = pop, fill=continent)) + labs(x=&quot;Fertility Rate&quot;, y = &quot;Life expectancy at birth (years)&quot;, size = &quot;Population (millions)&quot;) + xlim(0,10) + ylim(30,100) + geom_point(alpha=.8,shape = 21 ) + scale_color_brewer(type &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/11\/credit-where-credits-true-hans-rosling\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Credit where credit&#8217;s true: Hans Rosling<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3102],"tags":[1184],"class_list":["post-14021","post","type-post","status-publish","format-standard","hentry","category-one-world","tag-climate"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=14021"}],"version-history":[{"count":17,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14021\/revisions"}],"predecessor-version":[{"id":14053,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14021\/revisions\/14053"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=14021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=14021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=14021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}