1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotly_data.R
\name{highlight_key}
\alias{highlight_key}
\title{Highlight/query data based on primary key}
\usage{
highlight_key(x, ...)
}
\arguments{
\item{x}{a plotly visualization or a \code{data.frame}.}
\item{...}{arguments passed to \code{crosstalk::SharedData$new()}}
}
\value{
An object of class \link[crosstalk:SharedData]{crosstalk::SharedData}
}
\description{
This function simply creates an object of class \link[crosstalk:SharedData]{crosstalk::SharedData}.
The reason it exists is to make it easier to teach others how to leverage
its functionality in plotly. It also makes it more discoverable if one
is already aware of \link{highlight}.
}
\seealso{
\link{highlight}
}
\author{
Carson Sievert
}
|