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
library(tidyverse) | |
library(tidycensus) | |
library(leaflet) | |
library(sf) | |
library(shiny) | |
library(ggmap) | |
library(htmltools) | |
# Data -------------------------------------------------------------------- |
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
# | |
# Bookmarking | |
# Annotations & Commenting | |
# Gitlink | |
# | |
library(shiny) | |
library(gitlink) | |
# Define UI for application that draws a histogram |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#' Uncomfortable data | |
#' LA R Users Group | |
#' 2020-09-22 | |
#' Edward Visel | |
#' Setup | |
library(tidyverse) | |
path <- '/tmp/nycflights13/flights.csv' |
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
<html> | |
<head> | |
<title>Using deck.gl with Mapbox GL JS (Method 2)</title> | |
<script src="https://d3js.org/d3.v5.min.js" type="text/javascript"></script> | |
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script> | |
<link href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css" rel="stylesheet" /> | |
<style type="text/css"> | |
body { |
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
<html> | |
<head> | |
<title>deck.gl ScatterplotLayer Example</title> | |
<script src="https://d3js.org/d3.v5.min.js" type="text/javascript"></script> | |
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script> | |
<link href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css" rel="stylesheet" /> | |
<style type="text/css"> | |
body { |
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
library(geofacet) | |
library(ggplot2) | |
# original plot | |
ggplot(election, aes(candidate, votes / 1000000, fill = candidate)) + | |
geom_col() + | |
scale_fill_manual(values = c("#4e79a7", "#e15759", "#59a14f")) + | |
facet_geo(~ state, grid = "us_state_grid2") + | |
coord_flip() + | |
ylab("Votes (millions)") |
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
--- | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` | |
```{r message=FALSE, warning=FALSE} | |
library(tidyverse) |
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
library(geofacet) | |
library(ggplot2) | |
# original plot | |
ggplot(election, aes(candidate, votes / 1000000, fill = candidate)) + | |
geom_col() + | |
scale_fill_manual(values = c("#4e79a7", "#e15759", "#59a14f")) + | |
facet_geo(~ state, grid = "us_state_grid2") + | |
coord_flip() + | |
ylab("Votes (millions)") |
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
# Code for quick exploration of | |
# https://github.com/rfordatascience/tidytuesday/tree/master/data/2020/2020-05-26 | |
# Video at https://youtu.be/kHFmtKCI_F4 | |
library(tidyverse) | |
cocktails <- readr::read_csv("boston_cocktails.csv") | |
# Are name and row_id equivalent? ----------------------------------------- |