r-highcharter

Highcharter Unlimited Drill down using R

孤街浪徒 提交于 2019-12-13 08:44:05
问题 I looked at this SO question, that SO question. I followed this github method check out ISSUES to help get ideas on how to solve this. Step 1: Copy the following into text editor and save as test.csv file: My datasource is NVD JSON FEEDS which I processed and cleaned and created this dataset with the first 25 rows shown here. Year,Vendor name,Product name,CVE,Major,Minor,Build,Revision 1988,eric_allman,sendmail,CVE-1999-0095,5,5.58,, 1988,ftp,ftp,CVE-1999-0082,*,,, 1988,ftpcd,ftpcd,CVE-1999

Different Depth In 3D BarChart in Highcharts

孤者浪人 提交于 2019-12-13 03:05:45
问题 I know that I can set depth of all bars in Highcharts using depth property in column property of plotOptions likes the following code: plotOptions: { column : { depth: 30 } } Or # in R hc_plotOptions(column = list( depth = 30 ) The questions is how can I set different depth for each bar group in a bar chart (not one depth for all)? Solution can be in R (Highcharter) or in JS? 回答1: In core code the depth property is always taken from the series object options. Every group consists of the

How to modify highcharter htmlwidget code

可紊 提交于 2019-12-13 01:22:51
问题 I want to change the core code of the highcharter in R (the requirement comes from this post). I want to change core code of the highcharts in R as I know how to modify it in javascript: (function(H) { (...) H.seriesTypes.column.prototype.translate3dShapes = function() { (...) point.shapeType = 'cuboid'; shapeArgs.z = z; shapeArgs.depth = point.options.depth; // changed from: shapeArgs.depth = depth; shapeArgs.insidePlotArea = true; (...) }; })(Highcharts); Calling this code using js_typeof

Highcharter annotation on date x-axis not working - R

六眼飞鱼酱① 提交于 2019-12-12 17:08:20
问题 I am trying to add annotation for my highcharter chart, not sure why it is not working, instead it is showing [object][object]. Here is my data, structure(list(variable = structure(c(15522, 15553, 15584, 15614, 15645, 15675, 15706, 15737, 15765, 15796), class = "Date"), value = c(417376, 423563, 430290, 455643, 451542, 422419, 429472, 451694, 454900, 456844)), row.names = c(NA, 10L), .Names = c("variable", "value" ), class = "data.frame") Code, I am trying to add annotation only for last

show/hide serie in highchart/shiny with an action button

别来无恙 提交于 2019-12-12 04:57:38
问题 I want to be able to hide/show a serie in a highchart plot in shiny. I want to have the same smooth change as the one obtained when clicking on the legend but when clicking on a button. I want to be able to reproduce this behaviour but in a shiny app. My code so far is here. library(shiny) library(shinydashboard) library(highcharter) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody( shinyWidgets::materialSwitch( inputId = "button", label = "Button", value = FALSE ),

Highchart export offline

我的梦境 提交于 2019-12-11 19:12:46
问题 I need to get offline export from highchart in Shiny. Parameter fallbackToExportServer does not work. highcharter 0.7.0 R Version: "R version 3.5.1 (2018-07-02)" output$hc <- renderHighchart({ highchart() %>% hc_chart(type = "line" ) %>% hc_xAxis(cars$speed) %>% hc_add_series(cars$dist) %>% hc_exporting(enabled = T, fallbackToExportServer = F) }) 回答1: Parameter fallbackToExportServer does not work because it does not force the offline exporting. To enforce offline exporting I defined my own

Is it possible to create a Word Cloud with highcharter?

让人想犯罪 __ 提交于 2019-12-11 15:19:56
问题 I tried it with the following code, but somehow it didn't work for me: x4 is a dataframe, n1 a character string, and n2 the number of counts per word. hchart(x4 ,"wordcloud", hcaes(name = "n1", weight = "n2")) 回答1: There is a function for word cloud in highcharter, follow this code data(reuters, package = "kernlab") text = paste( reuters[[1]]) textcld <- text %>% map(str_to_lower) %>% reduce(str_c) %>% str_split("\\s+") %>% unlist() %>% data_frame(word = .) %>% count(word, sort = TRUE) %>%

Make a choropleth from a non-highmap-collection map

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:09:13
问题 I've been trying to make a choropleth map with hcmap from highcharter package; I obtained the polygons from my own shapefile because it's a map that is not on the list of highmap's collection. To do so, first I managed to transform my shapefile to a GeoJson file, as described here: https://blog.exploratory.io/creating-geojson-out-of-shapefile-in-r-40bc0005857d Later I managed to draw the map using the package geosonio as described here: http://jkunst.com/highcharter/highmaps.html#geojsonio

Drilldown to multiple series from different groups - Highcharter (in R)

心不动则不痛 提交于 2019-12-11 12:45:35
问题 I'm looking for a way to drill down from different groups into multiple series using Highcharter for R. Essentially, I'd like to reproduce this example some in High Charts (from jsfiddle) - http://jsfiddle.net/wchmiel/v1o8dga9/3/ Here's some code that gets me close to this - library(highcharter) library(dplyr) library(purrr) df <- tibble(x = c(1, 2, 3, 2, 3, 4, 3, 5, 4), y = c(1, 2, 1, 3, 3, 2, 4, 6, 5), key = c(rep("A", 3), rep("B", 3), rep("C", 3)), drilldown = c(rep("a", 3), rep("b", 3),

R Highcharter: Select category from a single point

橙三吉。 提交于 2019-12-11 08:56:07
问题 Using a highchart in R (using the highcharter package) I'm trying to select all the points for a single category when selecting any single point. The code below allows selecting a single slice of a stack in a stacked bar chart. I want the entire stacked bar to be selected/deselected by clicking on any of the stacked bar slices. library("shiny") library("highcharter") ui <- shinyUI( fluidPage( column(width = 8, highchartOutput("hcontainer", height = "500px")), column(width = 4, textOutput(