knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(lab5G3)

Example use of the package

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")

Plot function

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)

Shiny

This package suport the use of shiny using this link.

library(lab5G3)

weatherApp()

or,

shiny::runGitHub(repo = "harjew/lab5G3", subdir = "inst/app")



harjew/lab5G3 documentation built on Nov. 4, 2019, 1:28 p.m.