Skip to content

Commit b4f9f75

Browse files
committed
edited
1 parent 36f7b56 commit b4f9f75

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

_posts/ggplot2/2019-08-12-geom_tile.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ Also [adjusted the theme](https://ggplot2.tidyverse.org/reference/ggtheme.html).
7070

7171
```{r, results='hide'}
7272
library(plotly)
73+
spinrates <- read.csv("https://raw.githubusercontent.com/plotly/datasets/master/spinrates.csv",
74+
stringsAsFactors = FALSE)
7375
7476
p <- ggplot(spinrates, aes(x=velocity, y=spinrate)) +
7577
geom_tile(aes(fill = swing_miss)) +
@@ -94,6 +96,8 @@ chart_link
9496

9597
```{r, results='hide'}
9698
library(plotly)
99+
spinrates <- read.csv("https://raw.githubusercontent.com/plotly/datasets/master/spinrates.csv",
100+
stringsAsFactors = FALSE)
97101
98102
p <- ggplot(spinrates, aes(x=velocity, y=spinrate)) +
99103
geom_tile(aes(fill = swing_miss)) +

_posts/ggplot2/2019-08-12-geom_tile.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ Also [adjusted the theme](https://ggplot2.tidyverse.org/reference/ggtheme.html).
7171

7272
```r
7373
library(plotly)
74+
spinrates <- read.csv("https://raw.githubusercontent.com/plotly/datasets/master/spinrates.csv",
75+
stringsAsFactors = FALSE)
7476

7577
p <- ggplot(spinrates, aes(x=velocity, y=spinrate)) +
7678
geom_tile(aes(fill = swing_miss)) +
@@ -94,6 +96,8 @@ chart_link
9496

9597
```r
9698
library(plotly)
99+
spinrates <- read.csv("https://raw.githubusercontent.com/plotly/datasets/master/spinrates.csv",
100+
stringsAsFactors = FALSE)
97101

98102
p <- ggplot(spinrates, aes(x=velocity, y=spinrate)) +
99103
geom_tile(aes(fill = swing_miss)) +

0 commit comments

Comments
 (0)