# NOT RUN {
# Invoke the API (requires internet connection at this step)
response <- bmrsIndoItsdo(fromdate = "2020-01-01",
todate = "2020-01-10",
apikey = "your api key goes here")
# Visualise the results on a chart
library(ggplot2)
ggplot(response, aes(x=publishtime, y=value,colour=recordtype)) +
geom_line()
# }
Run the code above in your browser using DataLab