trelliscopejs (version 0.1.11)

cog_href: Href Cognostic

Description

Create href to be used as cognostics in a trelliscope display

Usage

cog_href(x, desc = "link", group = "common", default_label = FALSE,
  default_active = FALSE, filterable = FALSE, sortable = FALSE,
  log = FALSE)

Arguments

x

URL to link to

desc, group, default_label, default_active, filterable, sortable, log

arguments passed to cog

See Also

cog

Examples

Run this code
# NOT RUN {
library(dplyr)
library(rbokeh)
iris %>%
  group_by(Species) %>%
  summarise(
    wiki_link = cog_href(paste0("https://en.wikipedia.org/wiki/Iris_",
      tolower(Species))[1], default_label = TRUE,
      desc = "link to species on wikipedia"),
    panel = panel(figure(xlab = "Sepal Length", ylab = "Sepal Width") %>%
      ly_points(Sepal.Length, Sepal.Width))) %>%
  trelliscope(name = "iris_species", ncol = 3)
# }

Run the code above in your browser using DataCamp Workspace