if(interactive()){
ui <- fluidPage(
hexLogo(
"logo", "Logo",
hex_img = "https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg",
hex_link = "https://www.google.com",
footer = "Footer",
footer_link = "https://www.google.com"
),
hexLogo(
"x", "Change X offset",
hex_img = "https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg",
x = "40"
),
hexLogo(
"y", "Change Y offset",
hex_img = "https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg",
y = "-60"
),
hexPanel(
"demo1", "basic panel:" ,
rep("https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg", 2)
),
hexPanel(
"demo2", "panel with links:" ,
c(paste0("https://d33wubrfki0l68.cloudfront.net/",
"2c6239d311be6d037c251c71c3902792f8c4ddd2/12f67/css/images/hex/ggplot2.png"),
paste0("https://d33wubrfki0l68.cloudfront.net/",
"621a9c8c5d7b47c4b6d72e8f01f28d14310e8370/193fc/css/images/hex/dplyr.png")
),
c("https://ggplot2.tidyverse.org/", "https://dplyr.tidyverse.org/"),
c("ggplot2", "dplyr")
),
hexPanel(
"demo3", "footer with links:" ,
rep("https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg", 2),
footers = c("hex1", "hex2"),
footer_links = rep("https://www.google.com", 2)
),
hexPanel(
"demo4", "panel offsets" ,
hex_imgs = rep("https://live.staticflickr.com/7875/46106952034_954b8775fa_b.jpg", 4),
footers = paste0("hex", 1:4),
ys = seq(-20, -50, by = -10),
xs = seq(20, 50, by = 10)
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}
Run the code above in your browser using DataLab