View source: R/hc_add_onclick_korap_search.R
hc_add_onclick_korap_search | R Documentation |
Adds on-click events to data points of highcharts that were constructed with
frequencyQuery()
or collocationScoreQuery()
. Clicks on data points
then launch KorAP web UI queries for the given query term and virtual corpus in
a separate tab.
hc_add_onclick_korap_search(hc)
hc |
A highchart htmlwidget object generated by e.g. |
The input highchart object with added on-click events.
Other highcharter-helpers:
hc_freq_by_year_ci()
## Not run:
library(highcharter)
library(tidyr)
new("KorAPConnection", verbose = TRUE) %>%
collocationScoreQuery("Team", "agil", vc = paste("pubDate in", c(2014:2018)),
lemmatizeNodeQuery = TRUE, lemmatizeCollocateQuery = TRUE) %>%
pivot_longer(c("O", "E")) %>%
hchart(type="spline", hcaes(label, value, group=name)) %>%
hc_add_onclick_korap_search()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.