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
0
votes
0 answers

ggiraph interactive x scale?

I would like to make the labels on the x-axis interactive in ggiraph. Can it be done? Is there any way to use scale_discrete_manual_interactive to accomplish this? library(tidyverse) library(ggiraph) my_df <- tibble(x=letters[1:5],y=1:5) my_df |> …
Erich Neuwirth
  • 943
  • 7
  • 13
0
votes
1 answer

ggiraph, R: How to link legend and plot with same data_id attribute?

When I hover my cursor across a chart, I want the respective legend label and fill to also be highlighted, and vice versa. To do this, they need the same data_id - but I am struggling to get this right. How do I get this to work within my code? If I…
Sidders
  • 124
  • 10
0
votes
1 answer

ggiraph error when using coord_polar() and geom_segment_interactive

I am working on making a circular graph of the occurrences of animals throughout the year. where I have a number of variables (rings) and arrival and departure dates. I am trying to add more interactive functions to my graph with both shiny and…
0
votes
1 answer

ggiraph: fixed tooltip in geom_line_interactive

I'm probably missing something really, really obvious... In Example 2 the hovertext show '1', the first value of the assigned tooltip column and does not change I want to have a changing hover text like in example 1 without assinging f.e. color to y…
eule83
  • 25
  • 7
0
votes
1 answer

Show other data points when using ggiraph in R?

I am using ggiraph to make an interactive plot in R. My data is grouped and what I'm hoping to do is plot just the mean value of the group but when I hover over that point in the plot, the other points appear. Hopefully, my example below will…
Electrino
  • 2,636
  • 3
  • 18
  • 40
0
votes
1 answer

Exporting a graph in svg format, which is a `girafe` object (`ggiraph` package)

ggiraph package is suitable for generating interactive graphics. I was trying to execute some examples found online concerning package ggiraph and I was not able to find anywhere how to export the interactive graph generated, maybe in format svg (or…
GiacomoDB
  • 369
  • 1
  • 10
0
votes
1 answer

R ggiraph dynamically setting tooltip text without Shiny

What: Dynamically set the contents of ggiraph tooltips in rmarkdown knitted to html on page load. Why: Using embedded png's tooltips can be made to be graphics which is valuable for certain biological structures where text is insufficient. Here is a…
0
votes
1 answer

Ggiraph chart resizes too much on Shiny

I am trying to figure out how to better visualize ggiraph charts on Shiny apps. Here is the problem: the charts look awesome on desktop and mobile but they leave too much space underneath them when on mobile. On desktop Here is what I see on…
0
votes
1 answer

ggiraph - cannot link 2 interactive bar graphs

I'm trying to use ggiraph to link 2 interactive graphs together as Sharon has shown here : https://www.infoworld.com/article/3626911/easy-interactive-ggplot-graphs-in-r-with-ggiraph.html I managed to plot both graphs side by side. When I hover the…
Fern
  • 1
  • 1
0
votes
1 answer

How do I make the `ggiraph` hover functionality stick on click?

I have a visualization (see below) that has nice hover functionality that makes readability much easier. I would like the user to be able to make the hover functionality persist by clicking the thing they are hovering over. Is this possible using…
jntrcs
  • 527
  • 1
  • 5
  • 13
0
votes
1 answer

R/shiny drilldown report

Trying to have a pie (or preferably, donut) chart that displays totals per category and that allows a drilldown to display specifics per category when clicked. Make sense? I think I might not have every system setting correct, since also copy/paste…
0
votes
1 answer

set css property separately for each layer on hover (ggiraph)

Using ggiraph, I'd like to set css properties differently for each ggplot geom_ or layer using hover. In the example below, how might I set the stroke for the second geom_rect_interactive to blue on hover but keep the first layer stroke red on hover…
ssp3nc3r
  • 3,662
  • 2
  • 13
  • 23
0
votes
1 answer

Sizing of ggiraph::girafe() output is not consistent with documentation on RStudio viewer after use with flexdashboard

I have a number of plots using {ggplot2} and {ggiraph} that I have consolidated into a {flexdashboard} Before attempting to display them with the dashboard, these plots displayed correctly on RStudio's viewer using the sizing option width =…
0
votes
1 answer

Setting tooltip font in ggiraph 0.7 (R)

This may well be a CSS query rather than a {ggiraph} question, or may be to do with my R or Cairo installation, but here goes: I'm building a ggiraph interactive plot, but the settings that I apply for tooltip options aren't applied to the printed…
0
votes
0 answers

Centering annotate label dont work properly in docker image

I'm creating an image using ggplot2 and ggiraph to my API in plumber. I am using RStudio on Windows. When I create an local API (that plumber provides in Swagger) everything seems ok to me. But, when i use my Docker File with the command docker…