Questions tagged [r-highcharter]

Questions related to the usage of the Highcharts JavaScript library in R.

Highcharter is a R wrapper for the javascript library which is a charting library offering numerous interactive chart types such as line, area, bar, pie, scatter, bubble, gauge, polar charts.

Links:

Vignettes

533 questions
5
votes
1 answer

How to create motion line chart wth highcharter in R

I am trying to create a motion line chart. The functionality would look something like the below library(highcharter) library(magrittr) highchart() %>% hc_chart(type = "line") %>% hc_yAxis(max = 12, min = 0) %>% hc_xAxis(categories = c(1,…
dimitris_ps
  • 5,849
  • 3
  • 29
  • 55
4
votes
1 answer

In R how to replicate highchart chart with highcharter package

I need to replicate this chart bellow in my shiny app. But I am struggling to deal with the javascript part Any help would be amazing: Clock Chart Highchart This is the javascript code: how do I 'translate' this to R? Any help/indication to deal…
4
votes
2 answers

R - leaflet - highcharter tooltip

I want to include a highcharter plot in my leaflet popup. With help from this post Iam able to include a sparkline plot. However, due to my lack of html skills I dont know how to modify the code to work with highcharter. This answer on SO (example…
Pierre
  • 671
  • 8
  • 25
4
votes
2 answers

How can I show the label next to the bar in r highcharter?

I am trying to create a bar chart where the x-axis labels are located next to the bars. My desired result would be similar to: (from: HighCharts Place Label on Bar) However, there are two differences: I am making my chart in R highcharter I don't…
user10781624
  • 141
  • 1
  • 13
4
votes
1 answer

Setting Heat Map Color range as per given Sequence in hcharter

Here I am trying to create a heat map using highcharter::hcharter() where less than -1 should be one color (pink), -1 to 1 should be transparent or white color, and greater than +1 should be another color (violet). Presently I have written code…
Harvey
  • 245
  • 2
  • 9
4
votes
1 answer

Three level drill down highmap

I am trying to make multilevel drill down map using highmap, like first map will show all the countries, then clicking any country will drill down to all states in that country, then selecting any state will show all the districts in that. I have…
ds_user
  • 2,139
  • 4
  • 36
  • 71
4
votes
1 answer

Highcharter deprecated function's output is different than suggested

I am producing a time series plot with Josh Kunst's excellent highcharter library in R. Using this data: > dput(t) structure(c(2, 2, 267822980, 325286564, 66697091, 239352431, 94380295, 1, 126621669, 158555699, 32951026, 23, 108000151,…
d8aninja
  • 3,233
  • 4
  • 36
  • 60
4
votes
1 answer

R highcharter: putting heatmaps into motion

I'm trying to use the highcharter R package "Motion Plugin", to make a Motion Chart for a heatmap. I.e. I would like a heatmap to change over time, using a slider with a play/pause button (see links below). I'm able to create a simple heatmap, for a…
Giora Simchoni
  • 3,487
  • 3
  • 34
  • 72
3
votes
2 answers

Addings horizontals line on each Bar using Highcarter in R

This is my code: data <- gapminder::gapminder %>% filter(country == 'Brazil') %>% mutate(life = rnorm(12,mean = 55,sd = 5), months = month.abb) This is my chart: data%>% mutate(months = as_factor(months)) %>% mutate(index…
Laura
  • 675
  • 10
  • 32
3
votes
0 answers

Changing the data displayed in a chart

Let's say I have the following data: library(highcharter) year <- c(2017, 2018, 2019, 2020, 2021) black <- c(12, 15, 23, 16, 11) asian <- c(3, 12, 63, 46, 21) white <- c(5, 45, 44, 44, 4) hispanic <- c(23, 25, 44, 16, 112) male <- c(33, 33, 62, 66,…
DiamondJoe12
  • 1,879
  • 7
  • 33
  • 81
3
votes
1 answer

Share x-axis hover from one graph to another - plotly R

I would like to hover over the x-axis of p1 and for this hover to be shared on the x-axis of p2. library(plotly) p1 <- plot_ly(economics, x = ~date, y = ~unemploy) %>% add_lines(name = ~"unemploy") p2 <- plot_ly(economics, x = ~date, y =…
neves
  • 796
  • 2
  • 10
  • 36
3
votes
1 answer

Synchronize two Highcharts in Shiny - JS not invoked on Input change

Related to a previous post I made, I would like to update points in one Highcharter plot to change color when invoking a click event on a separate, but synchronized, Highcharter plot in R Shiny, in both directions. I am able to synchronize two…
jcoder
  • 35
  • 6
3
votes
1 answer

Highcharter Sankey diagram with repeated "to" and "from" node names

I am trying to visualise migration data with a Sankey diagram, in which names of nodes will be repeated between the "from" and "to" columns of the data frame. Unfortunately, highcharter tries to use single nodes and makes the edges go back and…
stragu
  • 1,051
  • 9
  • 15
3
votes
1 answer

Highcharter map click event not working in Shiny module

Below is a Shiny app in which a Highcharter map is displayed. When a user clicks a country, the name of the country is displayed below the map. The app below works when it does not use modules. When implemented using a module, the country selected…
6PO0222
  • 131
  • 7
3
votes
3 answers

R highcharter() global thousand separator?

Is there a way to have my highcharter graph have a thousands separator on the y axis and the tooltip? Not sure if there are separate ways of doing this, or if there is a global option. The tooltip data point is formatted so there is a space where a…
kmm
  • 51
  • 3
1
2
3
35 36