Questions tagged [ggiraph]

Use this tag for questions relating to ggiraph, an htmlwidget and a ggplot2 extension that allows ggplot graphics to be animated.

ggiraph is an htmlwidget to make ggplot graphics interactive. Further information can be found at ggiraph GitHub and CRAN.

89 questions
1
vote
0 answers

Synchronous tooltips with ggiraph?

I built 6 interactive county choropleth maps using the same data and grouped them to be displayed together. Hovering over one zipcode area shows the same zipcode highlighted in all other maps. Is there a way to display the tooltips for that zipcode…
Erudite
  • 33
  • 1
  • 5
1
vote
1 answer

I am trying to use ggiraph to add interactivity to a ggplot2 graph, it's not working

I have found this code that does exactly what I want but apparently it is using a fake dataset created with charlatan. What it does is make each line of a datatable into a selectable graph line. It enables tooltips for each line and fades the other…
1
vote
0 answers

Problem of system font detection with gdtools::font_family_exists

I want to draw an interactive html plot with ggiraph changing the font to "DejaVu Sans Condensed". This particular font works well with the interactive tooltips of girafe when I put it in the css, but not as the general font for text elements in the…
1
vote
0 answers

image in tooltip (r)

is it possible to insert images in tooltips on charts produced with r packages OTHER THAN highcharter? e.g., plotly, ggiraph? the reason for excluding highcharter is that the underlying js charting library is not free for commercial or governmental…
Bogdan
  • 21
  • 4
1
vote
2 answers

R show/hide points

everybody. I am using R and ggplot2. I have a chart and there are multiple points on it (Each of them has different colors. Red, blue, yellow, etc). I am using also R Shiny and ggiraph package to have click events on legends. Once, I click legend, I…
varguy
  • 15
  • 4
1
vote
1 answer

Show Overlay Page onclick of ggiraph plot in Shiny R

I an R shiny app, I want to show an overlay page with additional information to a data point when clicking on a {ggiraph} scatterplot. I want to dynamically construct this overlay page as renderUI in R, which is why I do not want to use {ggiraph}'s…
TimTeaFan
  • 17,549
  • 4
  • 18
  • 39
1
vote
1 answer

Create Onclick link to local html file

All examples of onclick in GGiraph seems to be linking some wikipedia page. For the description of the onclick function it says "Click actions must be a string column in the dataset containing valid javascript instructions". Does this also mean that…
1
vote
0 answers

R Ggplot ggiraph - Interactive line show value between two points

I am trying to render an interactive plot with geom_line_interactive. As shown in the example below, geom_line_interactive just shows the first x value throughout the whole graph. Is there a way to basically display the nearest x value given in the…
nihas12
  • 11
  • 3
1
vote
0 answers

Y axis labels won`t right align in shiny using ggiraph

I cannot right align the y-axis labels in this shiny app using ggiraph. Please find the running app here, a picture of the issue, the code, and app: https://eduardo757ag.shinyapps.io/test_labels/ I tried with theme(axis.text.y =…
edo
  • 63
  • 1
  • 4
1
vote
1 answer

Is there a way to display a filtered data table in a Modal window in R shiny using ggiraph and onclick?

I would like to have an interactive plot using ggiraph in which my onclick initiates a modal which is a pop-up window displaying the information related to the individual data point I have clicked. here is my code below. I cannot get the modal popup…
Alex
  • 21
  • 3
1
vote
1 answer

Interactive ggPredict whitin R Shiny FlexDashboard

I'm using Flexdashboard to create an R Shiny App; for the graph I'm using ggPredict() from ggiraphExtra package This is the chunk that I need the following plot with a linear regressions using the mtcars dataset: ### Graph2 ```{r} renderPlot({ …
Artur Guerra
  • 75
  • 2
  • 8
1
vote
1 answer

geom_point_interactive issue when passed alongside geom_boxplot

I wonder if you can help me. I often use the splendid ggiraph, but have recently encountered an issue where it doesn't seem to work when one of its interactive geoms is paired with another geom (either from ggiraph or ggplot2). Let me explain with…
p0bs
  • 1,004
  • 2
  • 15
  • 22
1
vote
1 answer

Adjust size of geoms when zooming in `ggiraph`

The ggiraph package extends ggplot2 to add interactivity. One feature is the ability to zoom in on a plot, for example using the following code: library(ggplot2) library(ggiraph) data(mtcars) mtcars$model <- rownames(mtcars) gg <- ggplot(mtcars,…
Andrew Jackson
  • 823
  • 1
  • 11
  • 23
1
vote
1 answer

ggiraph: different hover effects on the same ggplot

My goal is to create an interactive polygon which includes a label and hover effect. Here is an example: library(dplyr) library(ggplot2) library(ggiraph) df <- data_frame( x = c(0, 0, 3, 5, 3, 6, 0), y = c(0, 4, 6, 5, 3, 0, 0), tooltip =…
OzanStats
  • 2,756
  • 1
  • 13
  • 26
1
vote
1 answer

Change theme ggChoropleth

Is it possible to change background color or theme in a ggChoropleth map from the ggiraphExtra package? I try crimes <- data.frame(state = tolower(rownames(USArrests)), USArrests) states_map <- map_data("state") ggChoropleth(crimes, aes(fill=Murder,…
Matías
  • 35
  • 5