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
12
votes
2 answers

R Highcharter Sankey nodes column property trouble

I want to plot a Sankey diagram in R using highcharter package. I face a problem with formatting it. Here is the example. # devtools::install_github("jbkunst/highcharter") library(highcharter) hc_dat <- data.frame(from = c("A", "A", "B"), …
inscaven
  • 2,514
  • 19
  • 29
10
votes
1 answer

r - How to set xlim and ylim range in a highcharter plot?

I'm trying to set a specific range in my highcharter axes plot library(highcharter) h <- highchart() %>% hc_title(text = "Scatter chart with size and color") %>% hc_add_series_scatter(mtcars$wt, mtcars$mpg) %>% …
gonzalez.ivan90
  • 1,322
  • 1
  • 12
  • 22
8
votes
1 answer

Highmap R (or) javascript - adding custom legend

Here is my snippet, output$map <- renderHighchart({ region_map = hcmap("countries/nz/nz-all") highchart(type = "map") %>% hc_title(text = "Average") %>% hc_add_series_map(map = region_map, df = data1, joinBy = "name", value =…
ds_user
  • 2,139
  • 4
  • 36
  • 71
7
votes
2 answers

Customize bubble map with highcharter

Could someone help me to implement this excellent jsfiddle in a "shiny" application with the highcharter package ? https://jsfiddle.net/BlackLabel/nr1y47a9/ I started writing something like this but there are still some problems ... Here's the…
Damien Dotta
  • 771
  • 3
  • 13
7
votes
1 answer

Facet function in highcharts

I have a data like this example: df <- data.frame( date = seq(as.Date("2015-01-01"), as.Date("2015-12-31"), 100), id = rep(LETTERS, each = 4)[1:100], replicate(2, sample(1001, 100)) ) Plotting with ggplot is Ok ggplot(df, aes(x =…
DanG
  • 689
  • 1
  • 16
  • 39
6
votes
1 answer

highcharter: Highlight points in a group

When using highcharter for interactive plots, how can I specify that datapoints in a group must highlight together? library(highcharter) library(dplyr) library(tidyr) dfr <- data.frame(sample=c("A","B","C","D"),part=c(2,3,4,6),cat=c(5,7,3,3)) dfr1…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
5
votes
0 answers

Legend duplicating identical names in higcharts for R

I've made a timeline chart in highcharter, the R api for Highcharter. I want it to display a legend item for each of the color segments, but only once. The way it's rendering now, it repeats for every name. I've found that you can "link" series…
Ben G
  • 4,148
  • 2
  • 22
  • 42
5
votes
1 answer

Problem programming with dplyr--column which is definitely a vector being picked up as a formula

I'm writing a function to reproduce several charts that will all have similar formatting (and other stuff) using highcharter. I want to be able select different columns of the data set should the names change or if I want to be doing something…
Ben G
  • 4,148
  • 2
  • 22
  • 42
5
votes
1 answer

Programmatically create tab and plot in markdown

I'm trying to create a dynamic number of tabs in my rmd with some content inside. This one doesn't help. Something like this: --- title: "1" output: html_document --- ```{r } library(highcharter) library(tidyverse) iris %>% …
jyjek
  • 2,627
  • 11
  • 23
5
votes
1 answer

Creating Treemap with distinct colors using hctreemap2 in R

I am trying to produce an interactive treemap in R using the highcharter-package (I love the package btw). It shall look like this (I don't even need the different levels)…
Samuel
  • 431
  • 3
  • 10
5
votes
1 answer

Display html widget from plumber API in shiny application

I'm trying to display an interactive graph requested through a plumber API and display it in a shiny application. I can't figure out how to make it work, using for example highcharter. My example application with a base plot and highcharter graph…
Jerry424
  • 188
  • 6
5
votes
1 answer

highcharter integration in R Shiny "html template"-based application

CONTEXT I want to create a R Shiny dashboard using advanced UI, based on html template. The UI is thus built in pure HTML, and I'm using a bootstrap 4 free template as a starting point. ISSUE While using highcharter and its Shiny integration…
cho7tom
  • 1,030
  • 2
  • 13
  • 30
5
votes
1 answer

data plotted in ggplot to highcharter

I have this data frame df <- data.frame(x = 1:8, y1 = c(1:2, NA, NA,3:4, NA, NA), y2 = c(NA, NA,3:4, NA, NA, 5:6), type = c("A", "A","A","A","B","B","B","B")) #df x y1 y2 type 1 1 NA A 2 2 NA…
Moh
  • 188
  • 8
5
votes
1 answer

R Highcharter: tooltip customization

I created a chart using highcharter in a shiny dashboard and I am trying to customize the tooltip. The chart is combined line and scatter plot. I would like it to do the following: 1) Have a single box for hover information (it currently has one for…
Kevin
  • 1,974
  • 1
  • 19
  • 51
5
votes
1 answer

Highcharter stacked column groupings not using hchart()

I'm trying to create a stacked bar chart with groupings using Highcharter, and need to create it without using the hchart() function. I have the following code (hchart() portion works). data <- data.frame( building = c("Building A", "Building A",…
Bogdan Rau
  • 625
  • 5
  • 17
1
2 3
35 36