This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## In response to: https://twitter.com/ewijaya_/status/921178681069809664 | |
# Load ggplot2 | |
library(ggplot2) | |
# Start by creating a data frame similar to that found in the plot | |
x = LETTERS[1:4] | |
y = letters[1:8] | |
df <- expand.grid(x, y) | |
names(df) <- c("x", "y") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2017, James Molyneux | |
# MIT License, http://www.opensource.org/licenses/mit-license.php | |
# Load the rvest package | |
library(rvest) | |
# Naviagate to the site and obtain the form | |
site_url <- "http://www.nhc.noaa.gov/gis/archive_wsp.php" | |
my_session <- html_session(site_url) | |
site_form <- html_form(my_session)[[3]] |