library(bhgc.wx) library(ggplot2) theme_set(theme_gray()) suppressPackageStartupMessages(library(cowplot)) dummy <- timezone("America/Los_Angeles") locations <- bhgc.wx:::noaa_locations() location <- locations[[params$site]] stopifnot(!is.null(location)) url <- noaa_url(location$launch_gps) wx <- read_noaa(url)
Forcast from: r as.character(wx$last_updated[1], usetz = TRUE)
gg1 <- bhgc.wx:::ggplot_noaa_wind_direction(wx, days = 2L) gg2 <- bhgc.wx:::ggplot_noaa_surface_wind(wx, days = 2L) res <- plot_grid(gg1, gg2, ncol = 1L, rel_heights = c(1,2), align = "v") res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.