Description Usage Arguments See Also Examples
Create href to be used as cognostics in a trelliscope display
1 2 3 4 5 6 7 8 9 10 |
x |
URL to link to |
desc, group, default_label, default_active, filterable, sortable, log |
arguments passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(dplyr)
library(tidyr)
library(plotly)
iris %>%
nest(data = -Species) %>%
mutate(
panel = map_plot(data, function(x) {
plot_ly(data = x, x = ~Sepal.Length, y = ~Sepal.Width,
type = "scatter", mode = "markers")
}),
wiki_link = cog_href(paste0("https://en.wikipedia.org/wiki/Iris_",
tolower(Species))[1], default_label = TRUE,
desc = "link to species on wikipedia")
) %>%
trelliscope(name = "iris_species", ncol = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.