cog_disp_filter | R Documentation |
Helper function for creating a cognostic for a link to another display in a filtered state
cog_disp_filter(
display,
var,
val,
desc = "link",
group = "common",
type = c("href", "href_hash"),
default_label = FALSE,
default_active = FALSE,
filterable = FALSE,
sortable = FALSE
)
display |
A string indicating the name of the display to link to. |
var |
A string indicating the variable name to filter on. |
val |
A string indicating the value of the filter. |
desc |
a description for this cognostic value |
group |
optional categorization of the cognostic for organizational purposes in the viewer (currently not implemented in the viewer) |
type |
of either "href" or "href_hash". "href" will open the link in a new page. "href_hash" will update the page's hash and reload the page (useful when changing state inside an iframe) |
default_label |
should this cognostic be used as a panel label in the viewer by default? |
default_active |
should this cognostic be active (available for sort / filter / sample) by default? |
filterable |
should this cognostic be filterable? Default is |
sortable |
should this cognostic be sortable? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.