highcharter | R wrapper for highcharts | Data Visualization library
kandi X-RAY | highcharter Summary
kandi X-RAY | highcharter Summary
R wrapper for highcharts
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of highcharter
highcharter Key Features
highcharter Examples and Code Snippets
Community Discussions
Trending Discussions on highcharter
QUESTION
I am trying to download "highcharter" but got the error below. I also tried installing "rjson" but I got "package ‘rjson’ is not available (for R version 3.6.3)" message
...ANSWER
Answered 2022-Apr-05 at 08:26The latest version of rjson
(0.2.21) depends on R version >= 4.0.0 (see CRAN), and it seems like you have R version 3.6.3.
Your best option is to update your version of R before installing rjson
or highcharter
.
rjson
An alternative is to install an older version of rjson
(0.2.20 should work with your version of R).
You can either do this with packages like renv
:
QUESTION
I am building an App that at some point renders 7-16 Highcharts in a grid-layout. The rendering of these Highcharts is quite slow and I am trying to make it faster.
Right now I am using renderUI(), htmlOutput() and highcharter::hw_grid() to render the graphs. ( See Code chunk 1) I have come upon this Post where they tried to improve the performance by first using highcharter::renderHighchart() to render the Graphs and then using highcharter::higchartOutput() in renderUI() function. I have changed the code a bit so that it's output is the same as in my first Version, but the Idea should have stayed the same.(see Code chunk 2)
I have now Implemented both versions in two shiny-Apps and tried to evaluate them with profvis. I am very new to profvis and i am not sure where to look exactly to compare these two options. So I have just looked at the total time RunApp() takes. My first Version using renderUI() and htmlOutput() seemst to be faster than version two. This contradicts the results of the beforementioned Post.
Now I am wondering which options is faster and why. Should I change my code from Version 1 to version 2 to improve performance?
Code Chunk 1 ...ANSWER
Answered 2022-Apr-02 at 08:24I have now put the two options in one app
QUESTION
Looking to replicate the following ggplot logic in highcharter.
...ANSWER
Answered 2022-Mar-28 at 11:58Found the solution that was simple, but not intuitive. Apparently, the name
argument in hc_add_series()
can take a vector of names. It would have perhaps been more intuitive if this argument was named names
instead.
QUESTION
I have a shiny dashboard that displays various elements (highchart and ggplot plots, datatables). Users can filter by some variables to create a "groupA" and groupB" of data. GroupA is initially all the data, GroupB is empty initially. When the user opens the dashboard, they will see a single column of elements for GroupA. By filtering they are able to move some data to groupB, which should show in new 2nd column. So each of group A and B have the same elements on the page, just a different filter is applied. If groupB becomes empty, the view will again switch to a single column of groupA elements. The column for GroupA should resize as needed to cover the whole width or half the width. I am having difficulty getting this to work in a way that is economical on code.
The answer here uses element IDs to show and hide specific elements. This would work but the dashboard has many pages and many elements per page. So it would involve a large amount of additional code.
I thought that just by putting each element in a div with class corresponding to the group, that I would be able to apply the same idea, except to use a CSS selector and catch all elements in one go. But this is not working. The CSS selector seems OK, e.g. when I use it in a jQuery statement in the console I get the expected elements.
The code below is a reprex of the issue just with buttons to show/hide groupB for simplicity, rather than depending on the data.
...ANSWER
Answered 2022-Mar-14 at 23:49The problem is for both removeClass
and addClass
, the first positional argument is id
, not class.
To make it work as the class you want to add/remove, you need to write the argument name class = xxx
out:
QUESTION
I'm trying to create a dashboard where a state can be selected and the graph is updated by that selection, but I get this error:
...'Warning: Error in : 'df', 'hcaes(x = date, y = injured)' arguments are not named in hc_add_series [No stack trace available]'
ANSWER
Answered 2022-Mar-11 at 20:49The call of df
after reactive function should be df()
:
QUESTION
library(highcharter)
library(dplyr)
library(viridisLite)
library(forecast)
library(treemap)
data("Groceries", package = "arules")
dfitems <- tbl_df(Groceries@itemInfo)
set.seed(10)
dfitemsg <- dfitems %>%
mutate(category = gsub(" ", "-", level1),
subcategory = gsub(" ", "-", level2)) %>%
group_by(category, subcategory) %>%
summarise(sales = n() ^ 3 ) %>%
ungroup() %>%
sample_n(31)
hctreemap2(group_vars = c("category","subcategory"),
size_var = "sales")%>%
hc_tooltip(pointFormat = "{point.name}:
Pop: {point.value:,.0f}
GNI: {point.colorValue:,.0f}")
...ANSWER
Answered 2022-Jan-21 at 16:21When I tried your code, it also stated that the function was deprecated and to use data_to_hierarchical
. Although, it's never quite that simple, right? I tried multiple ways to get hctreemap2
to work, but wasn't able to discern that issue. From there I turned to the package recommended data_to_hierarchical
. Now that worked without an issue--once I figured out the right type
, which in hindsight seemed kind-of obvious.
That being said, this is what I've got:
QUESTION
I am trying to build a candlestick chart with quantmod and highcharter package. Building the chart is super easy.
...ANSWER
Answered 2022-Jan-16 at 05:15Found the solution. I need to use the upColor
argument.
QUESTION
I'm attempting to create a map graph with highlighted tiles using highcharter
in R.
I managed to retrieve a JSON map, create a dataframe with my data, and generate a highcharter map graph. I'm now customizing the toolip, which should display the country name, region and the number integer in my dataframe's count column. Using the hc_tooltip()
function returns the name and region, but doesn't find the values. I suspect this is due to the tooltip function looking in the map data rather than my dataframe. I'm unsure how to change that. Here's an example:
ANSWER
Answered 2021-Dec-20 at 00:17When you included hc_add_series_map
you defined the value
of the variable to chart as "occurences". To include this column in your formatter
, try using:
QUESTION
I'm loading a custom map as usual, but it ran into an error today - Error: parse error: trailing garbage
. It seems like it relates to the JSON file parsing. I have tried a few other maps, but all had the same error.
Here is my code:
...ANSWER
Answered 2021-Dec-11 at 03:04There is no definite fix but try installing the development version first:
QUESTION
I am trying to label all series datapoint on the crosshair tooltip when hovering over a timeseries. Here is what I currently have:
...ANSWER
Answered 2021-Dec-03 at 09:54if you have two series and do you want to show them both at the tooltip try tu use xAxis.crosshair and tooltip.shared.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install highcharter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page