Skip to content

Commit

Permalink
fix ggplot warning in vignette
Browse files Browse the repository at this point in the history
remove library(transitfeedr)
  • Loading branch information
polettif committed Nov 12, 2021
1 parent 4cc034c commit 0440831
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data-raw/nyc-subway-gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ library(downloader)
nyc_subway_url <- "http://web.mta.info/developers/data/nyct/subway/google_transit.zip"

download("http://web.mta.info/developers/data/nyct/subway/google_transit.zip",
here::here("inst/extdata/google_transit_nyc_subway.zip"), mode = "wb")
here::here("inst/extdata/google_transit_nyc_subway.zip"), mode = "wb")
4 changes: 1 addition & 3 deletions data-raw/transitfeeds.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#oncomment to:
#set_api_key()
library(transitfeedr)
# set_api_key()
feedlist <- get_feedlist()
usethis::use_data(feedlist)
2 changes: 1 addition & 1 deletion vignettes/servicepatterns.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ ggplot(trip_dates_count, aes(x = weekday, y = -week_of_month)) + theme_bw() +
geom_text(aes(label = day_of_month), size = 3, colour = "grey20") +
facet_wrap(~month, ncol = 3) +
scale_fill_gradient(low = "cornsilk1", high = "DarkOrange", na.value="white")+
scale_color_manual(guide = F, values = "grey50") +
scale_color_manual(guide = "none", values = "grey50") +
theme(axis.text.y = element_blank(), axis.ticks.y = element_blank()) +
theme(panel.grid = element_blank()) +
labs(x = NULL, y = NULL, fill = "# trips") +
Expand Down

0 comments on commit 0440831

Please sign in to comment.