powered by
Creates HTML code to embed an interactive chart from Our World in Data into an HTML document using an iframe.
owid_embed(url, width = "100%", height = "600px")
A character string containing the HTML iframe to embed the chart.
A character string containing the URL of the Our World in Data chart. Must begin with "https://ourworldindata.org/grapher/".
A character string specifying the width of the iframe. Default is "100%".
A character string specifying the height of the iframe. Default is "600px".
owid_embed( "https://ourworldindata.org/grapher/co2-emissions-per-capita", width = "90%", height = "500px" )
Run the code above in your browser using DataLab