Spacejam is a package which connects to an API handed by NASA, which keep track of Coronal Mass Ejection (CME).
The package grabs a few parameters which you can use.
In the live version, you'll need to have your own API key. This can be generated here.
To get you started, after installing the package load the library as follows:
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(spacejam)
# You can call the CME function as following: a <- spacejam("2010-01-01", "2010-12-31") # This will return a class object which provides data about CME's from 2010. The dates can be changed as you prefer.
# Using `a` above, we can explore the different tools that comes with the package. # For example to check what data was retrieved: a$data # Info about the response: a$response
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.