Skip to content

Commit 1ed3847

Browse files
author
Joseph Damiba
committed
removing block mistakenly added to resolve merge conflict
1 parent 9bdb137 commit 1ed3847

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

r/2019-09-27-lines-on-mapbox.Rmd

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -63,38 +63,6 @@ p <- plot_ly(
6363
zoom = 1),
6464
margin =list(l=0,t=0,b=0,r=0))
6565
66-
p
67-
```
68-
69-
This example uses `scattermapbox` trace and shows how to customize hoverinfo in Mapbox.
70-
71-
```{r}
72-
library(plotly)
73-
74-
us_cities = read.csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")
75-
76-
df = us_cities[us_cities$State == c('Washington'),]
77-
78-
79-
p <- plot_ly(
80-
df,
81-
lat= ~lat,
82-
lon= ~lon,
83-
type = 'scattermapbox',
84-
mode='markers+lines',
85-
marker=list(
86-
color = 'fuchsia',
87-
size = 10,
88-
opacity =0.8),
89-
color = list('color'),
90-
hovertext = ~City,
91-
hoverinfo = "lat+lon+text") %>%
92-
layout(
93-
mapbox=list(style = 'stamen-terrain',
94-
center = list(lat =47, lon = -122),
95-
zoom =5),
96-
margin=list(r = 0,t = 0, l = 0, b = 0))
97-
9866
p
9967
```
10068
#Reference

0 commit comments

Comments
 (0)