knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(lab5G3)
This function finds the weather in i city, from the API given by https://www.weatherstack.com/.
The weather in Linköping,
weather("Linkoping")
The weather in Las Vegas,
weather("Las-Vegas")
This package have a plot function that uses ggplot2 and returns an approximate map of the city you searched for. But some cities are not working at the moment.
library(ggplot2) library(lab5G3) test<-weather("Linkoping") plot(test)
This package suport the use of shiny using this link.
library(lab5G3)
weatherApp()
or,
shiny::runGitHub(repo = "harjew/lab5G3", subdir = "inst/app")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.