r-highcharter

Setting Heat Map Color range as per given Sequence in hcharter

你说的曾经没有我的故事 提交于 2020-04-10 04:01:11
问题 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 using hchart() and used color_stops to change the color format. But this works really well when data is centered to 0, but when it isn't centered to 0 let say from -5 to +7.5 white/transparent color would be shifted to 1 as shown in the image below. a1

Highcharter bar chart cut off x axis label

若如初见. 提交于 2020-03-23 08:03:49
问题 I'm doing some plot with highcharter, but have some issues with label when ploting stacked barchart whan I have only one category. When I have more than one category it works well, how can I fix that ? Thanks df <- structure(list(nom_part="BOB", id_part="565626235", fact_cada_annee="2018", ok=1), row.names = c(NA, -1L), class = c("tbl_df", "tbl", "data.frame")) highchart() %>% hc_chart(type = "column") %>% hc_plotOptions(column = list(stacking = "normal")) %>% hc_xAxis(categories = df$fact

is there an equivalent to geom_ribbon in highcharter?

一个人想着一个人 提交于 2020-03-22 10:30:19
问题 Using highcharter, is there a way to replicate geom_ribbon form ggplot2 ? 回答1: Yes, it is called arearange . You can check the 3rd example in https://cran.r-project.org/web/packages/highcharter/vignettes/charting-data-frames.html. highchart() %>% hc_add_series(data, "arearange", hcaes(x, low = lowvalue, high = highvalue)) 来源: https://stackoverflow.com/questions/47782623/is-there-an-equivalent-to-geom-ribbon-in-highcharter

is there an equivalent to geom_ribbon in highcharter?

雨燕双飞 提交于 2020-03-22 10:27:01
问题 Using highcharter, is there a way to replicate geom_ribbon form ggplot2 ? 回答1: Yes, it is called arearange . You can check the 3rd example in https://cran.r-project.org/web/packages/highcharter/vignettes/charting-data-frames.html. highchart() %>% hc_add_series(data, "arearange", hcaes(x, low = lowvalue, high = highvalue)) 来源: https://stackoverflow.com/questions/47782623/is-there-an-equivalent-to-geom-ribbon-in-highcharter

is there an equivalent to geom_ribbon in highcharter?

自闭症网瘾萝莉.ら 提交于 2020-03-22 10:26:00
问题 Using highcharter, is there a way to replicate geom_ribbon form ggplot2 ? 回答1: Yes, it is called arearange . You can check the 3rd example in https://cran.r-project.org/web/packages/highcharter/vignettes/charting-data-frames.html. highchart() %>% hc_add_series(data, "arearange", hcaes(x, low = lowvalue, high = highvalue)) 来源: https://stackoverflow.com/questions/47782623/is-there-an-equivalent-to-geom-ribbon-in-highcharter

HighcharteR: plotband and plotline not working

走远了吗. 提交于 2020-01-24 14:34:27
问题 I am trying to chart a daily value series in highcharteR marking a vertical line (plotline) and a period of dates (plotband) in the chart. I researched several SO question and reach this script, but I found the following issues: 1) plotband not ploted 2) ploline not ploted 3) xaxis should be dates are converted in a way that I not understand. My reproducible code is: library(highcharter) t <- seq(from=as.Date('2017-01-01'), to=as.Date('2018-06-30'), by='days') d <- runif(n = 546, min = 1, max

HighcharteR: plotband and plotline not working

时光总嘲笑我的痴心妄想 提交于 2020-01-24 14:34:07
问题 I am trying to chart a daily value series in highcharteR marking a vertical line (plotline) and a period of dates (plotband) in the chart. I researched several SO question and reach this script, but I found the following issues: 1) plotband not ploted 2) ploline not ploted 3) xaxis should be dates are converted in a way that I not understand. My reproducible code is: library(highcharter) t <- seq(from=as.Date('2017-01-01'), to=as.Date('2018-06-30'), by='days') d <- runif(n = 546, min = 1, max

Create highchart density with more than 2 groups

爱⌒轻易说出口 提交于 2020-01-24 10:04:25
问题 I tried to create highchart density with more than two groups. I found a way to add them one by one manually but there must be a better way to handle groups. Examples: I would like to create a highchart similar to ggplot chart below without adding them one by one. Is there any way to do so? d f <- data.frame(MEI = c(-2.031, -1.999, -1.945, -1.944, -1.875, -1.873, -1.846, -2.031, -1.999, -1.945, -1.944, -1.875, -1.873, -1.846, -2.031, -1.999, -1.945, -1.944, -1.875, -1.873, -1.846, -2.031, -1

Labelling Points on a highcharter scatter chart

痴心易碎 提交于 2020-01-15 12:14:51
问题 I want to label each individual point in a highcharter scatter plot. The below code produces a highcharter chart: library(highcharter) df = data.frame(name = c("tom", "dick", "harry"), height = c(170L,180L, 185L), weight = c(65L, 68L, 75L)) highchart() %>% hc_add_series(df, type = "scatter", hcaes(x = weight, y = height), showInLegend = FALSE) %>% hc_tooltip(pointFormat = "height: {point.y} <br> weight: {point.x}") Hovering over each point shows: "series 1, height: 170, weight: 65" etc. I

R Highcharter: tooltip customization

試著忘記壹切 提交于 2019-12-30 07:46:06
问题 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 the line and one for scatter) 2) Be able to use different column of information that is not used in the series x or y values I would like the tooltip to display the following information (whether I hover over the scatter point or line) for each