8000 fix ci · plotly/plotly.r-docs@64254ae · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 64254ae

Browse files
author
mahdis-z
committed
fix ci
1 parent 67867b6 commit 64254ae

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

r/2015-07-30-map-subplots-and-small-multiples.Rmd

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,24 @@ g <- list(
3232
subunitcolor = toRGB("white")
3333
)
3434
35-
one_mafig <- function(dat) {
36-
plot_geo(dat)
37-
fig <- fig %>%
38-
add_markers(x = ~LON, y = ~LAT, color = I("blue"), alpha = 0.5)
39-
fig <- fig %>%
40-
add_text(x = -78, y = 47, text = ~unique(YEAR), color = I("black"))
41-
fig <- fig %>%
42-
layout(geo = g)
43-
}
35+
one_map <- function(dat) {
36+
plot_geo(dat) %>%
37+
add_markers(x = ~LON, y = ~LAT, color = I("blue"), alpha = 0.5) %>%
38+
add_text(x = -78, y = 47, text = ~unique(YEAR), color = I("black")) %>%
39+
layout(geo = g)}
4440
4541
fig <- df
4642
fig <- fig %>% group_by(YEAR)
4743
fig <- fig %>% do(mafig = one_map(.))
4844
fig <- fig %>% subplot(nrows = 9)
4945
fig <- fig %>% layout(
50-
showlegend = FALSE,
51-
title = 'New Walmart Stores per year 1962-2006<br> Source: <a href="http://www.econ.umn.edu/~holmes/data/WalMart/index.html">University of Minnesota</a>',
52-
width = 1000,
53-
height = 900,
54-
hovermode = FALSE
55-
)
46+
showlegend = FALSE,
47+
title = 'New Walmart Stores per year 1962-2006<br> Source: <a href="http://www.econ.umn.edu/~holmes/data/WalMart/index.html">University of Minnesota</a>',
48+
width = 1000,
49+
height = 900,
50+
hovermode = FALSE
51+
)
5652
5753
fig
54+
5855
```

0 commit comments

Comments
 (0)
0