[emaillocker]Below are the solutions to these exercises on the “Shinydashboard Package – Part 1.” # load packages library(shiny) library(shinydashboard) #################### # # # Exercise 1 # # # #################### header <- dashboardHeader( title = span( “Practicing shinydashboard”, style = “font-family: Tahoma; font-weight: bold” ) ) #################### # # # Exercise 2 # # # #################### […]
Step Up Your Dashboard With Shinydashboard – Part 1: Exercises
The shinydashboard package provides a well-designed dashboard theme for Shiny apps and allows for an easy assembly of a dashboard from a couple of basic building blocks. The package is widely used in commercial environments as well, due to its neat features for building convenient and robust layouts. This exercise set will help you practice […]
Specialize in Geo-Spatial Visualizations With Leaflet – Part 2: Exercises
Leaflet is a JavaScript library for interactive maps. It is widely used across many platforms and fortunately, it is also implemented as a very user-friendly R package! With leaflet, you can create amazing maps within minutes that are customized exactly to your needs and embed them within your Shiny apps, markdowns or just view them […]
Specialize in Geo-Spatial Visualizations With Leaflet – Part 2: Solutions
Below are the solutions to these exercises on Leaflet Package – Part 2.” # load package library(leaflet) #################### # # # Exercise 1 # # # #################### leaflet() %>% setView(lng = -47.4, lat = 39.75, zoom = 3) %>% addTiles() %>% addEasyButton( easyButton( icon = shiny::icon(“home”), title= “Reset Zoom”, onClick = JS( c(“function(btn, map) {map.setView(new […]
Specalize in Geo-Spatial Visualizations With Leaflet – Part 1: Exercises
Leaflet is a JavaScript library for interactive maps. It is widely used across many platforms, and fortunately it is also implemented as a very user-friendly R package! With leaflet, you can create amazing maps within minutes that are customized exactly to your needs and embed them within your Shiny apps, markdowns, or just view them […]
Specialize in Geo-Spatial Visualizations With Leaflet – Part 1: Solutions
Below are the solutions to these exercises on ” The Leaflet Package – Part 1.” # load package library(leaflet) #################### # # # Exercise 1 # # # #################### leaflet() %>% addProviderTiles(provider = “Esri.WorldGrayCanvas”) #################### # # # Exercise 2 # # # #################### leaflet() %>% addProviderTiles(provider = “Esri.WorldGrayCanvas”) %>% setView(lng = 8.2275, lat = […]
Harvesting Data From the Web With Rvest: Solutions
Below are the solutions to these exercises on ” Harvesting Data From the Web With Rvest.” # load package library(rvest) #################### # # # Exercise 1 # # # #################### webpage <- read_html(x = “https://money.cnn.com/data/us_markets/”) #################### # # # Exercise 2 # # # #################### html_session(“https://money.cnn.com/data/us_markets/”) ## <session> https://money.cnn.com/data/us_markets/ ## Status: 200 ## Type: text/html; […]
Harvesting Data From the Web With Rvest: Exercises
The rvest package allows for simple and convenient extraction of data from the web into R, which is often called “web scraping.” Web scraping is a basic and important skill that every data analyst should master. You’ll often see it as a job requirement. In the following exercises, you will practice your scraping skills on […]