Skip to content

Commit 1f107c6

Browse files
committed
tweak docs
1 parent 2611b9d commit 1f107c6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

inst/docs.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -694,17 +694,14 @@ df2 <- data.frame(
694694
)
695695

696696
# id for anchoring traces on different plots
697-
df$id <- factor(df$YEAR)
698-
levels(df$id) <- id
697+
df$id <- as.integer(factor(df$YEAR))
699698

700699
p <- plot_ly(df, type = 'scattergeo', lon = LON, lat = LAT, group = YEAR,
701700
geo = paste0("geo", id), showlegend = F,
702701
marker = list(color = toRGB("blue"), opacity = 0.5)) %>%
703702
add_trace(lon = -78, lat = 47, mode = 'text', group = YEAR,
704703
geo = paste0("geo", id), text = YEAR, data = df2) %>%
705-
layout(title = 'New Walmart Stores per year 1962-2006<br>
706-
Source: <a href="http://www.econ.umn.edu/~holmes/data/WalMart/index.html">
707-
University of Minnesota</a>',
704+
layout(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>',
708705
geo = g,
709706
autosize = F,
710707
width = 1000,

0 commit comments

Comments
 (0)