ropensci / wateRinfo

R package to download time series data from waterinfo.be
https://docs.ropensci.org/wateRinfo
MIT License
14 stars 3 forks source link

Create hex logo for wateRinfo #28

Closed peterdesmet closed 6 years ago

peterdesmet commented 6 years ago

@stijnvanhoey, fun challenge for you. 😄

Can be included cf. https://github.com/CornellLabofOrnithology/auk/blob/master/README.Rmd

Collection of HEX logos: http://hexb.in/

stijnvanhoey commented 6 years ago

@peterdesmet Great idea... but, as my graphical skills are rather limited, I'm opening this question to anyone who likes making logos and feels like designing a wateRinfo dedicated hexbin ;-)

There is a stickerstandard: https://github.com/terinjokes/StickersStandard

peterdesmet commented 6 years ago

Version 0.1 (purposely on actual web resolution, actual version is 300dpi and bigger):

waterinfo

@stijnvanhoey questions:

stijnvanhoey commented 6 years ago

For example:

image

Code


library(wateRinfo)
tide <- get_variables("zes21a-1066") %>%
    filter(grepl(".*10min.base", ts_name)) %>%
    pull(ts_id) %>%
    get_timeseries_tsid(,
        from = "2017-11-21 08:00:00",
        to = "2017-11-23 23:00:00",
        datasource = 2)

ggplot(tide, aes(x = Timestamp, y = Value)) +
    geom_line(color = "#339dd3", size = 2) +
    theme_void() + theme(legend.position="none")
peterdesmet commented 6 years ago

Updated code:

library(tidyverse)
library(wateRinfo)

tide <- get_variables("zes21a-1066") %>%
  filter(grepl("Pv.10", ts_name)) %>%
  pull(ts_id) %>%
  get_timeseries_tsid(,
                      from = "2017-11-21 08:00:00",
                      to = "2017-11-23 23:00:00",
                      datasource = 4)

plot <- ggplot(tide, aes(x = Timestamp, y = Value)) +
  geom_line(color = "#1F6F8A", size = 1.5) +
  theme_void() +
  theme(legend.position = "none")
ggsave("tide.png", plot, bg = "transparent", units = "cm", width = 10, height = 6)
peterdesmet commented 6 years ago

Website relaunched with logo: https://inbo.github.io/wateRinfo/ Favicon doesn't load by default in my browser yet, but that's just a minor thing.

peterdesmet commented 6 years ago

Fact that favicon doesn't load is a bit of a GitHub pages bug that will be addressed in https://github.com/r-lib/pkgdown/issues/807