Web Map Services provides a standard interface to map images.
This R package reads the capabilites XML document associated with a WMS source and creates a 'WMS' R class.
I created the package to allow an interface to WMS sources in shiny apps using leaflet-shiny.
Extract some sea surface temperature data from this THREDDS WMS source for lat/long and specific date range.
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("davesteps/rWMS")
require(rWMS)
src <- WMS('http://data.ncof.co.uk/thredds/wms/METOFFICE-GLO-SST-L4-NRT-OBS-SST-V2?')
#use layerNames to examine the available variables on the source
layerNames(src)
frm <- "2010-01-01"
to <- "2010-12-31"
df <- TDSquery(src,lat = 53,lon = -5.5,from = frm,to = to,lyr = "analysed_sst")
plot(df$date,df$values,type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.