r-highcharter

How to produce scatterplot with a factor as y in highcharter?

霸气de小男生 提交于 2019-12-01 08:13:32
问题 Problem: I would like to produce a scatter plot with highcharter::hchart , where y is a factor , and x is a date . Apparently, highcharter::hchart "scatter" does not accept factor variables as y. Is there any workaround? Or is "scatter" just the wrong charttype? (Comment: I know ggplotly would be a good alternative, but I actually need a highcharter solution) Example: Let's suppose I want to produce a timeline of publications by type . I want a scatterplot with d$type (=y-axis) and d$date (=x

R Highcharter: tooltip customization

南楼画角 提交于 2019-12-01 01:50: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 particular x-axis value. Overall Mean: 2 [Mean: data$avghours] Dog: 1 [data$animal: data$hours] Below is

Hyperlink bar chart in Highcharter

我怕爱的太早我们不能终老 提交于 2019-11-30 09:59:54
问题 I'm having trouble recreating this answer in R with Highcharter to make the bars in a bar chart into clickable URLs. Here is the Javascript code from the answer. Highcharter has a vignette about recreating Javascript that I tried to follow. Here's what tried so far. It doesn't show any of the bars. library(tidyverse) library(highcharter) highchart() %>% hc_chart(type = "column") %>% hc_title(text = "Click points to go to URL") %>% hc_xAxis(type = "category") %>% hc_plotOptions(series = list