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
1 answer

Turn off hover effect in ggiraph map when data is missing

I have data for some municipalities in Sweden, but not all of them. I would like to plot this data on a map, with tooltips indicating exact values and name of the municipality on hover. The below code does this, but there is a serious problem --…
0
votes
1 answer

Error when install.package("ggiraph"): "no matching function for call to ‘regex_replace" / RStudio on AWS-Cloud Linux

I'm having this error when trying to install ggiraph in R (RStudio Server on an linux based AWS instance, new RStudio and R versions). Can't find any advice anywhere for linux systems (only for OS X). Did anybody encounter the same problem and how…
SamuelR
  • 121
  • 6
0
votes
1 answer

R/ggiraph: Plot truncated

Trying to learn ggiraph, experimenting with basic examples. I'm using R 4.0.2 and RStudio 1.3.1073, both freshly downloaded & updated on my Win10 machine. library( tidyverse ) library( ggiraph ) somePlot <- mtcars %>% mutate( carname =…
0
votes
1 answer

facet_grid and ggiraphExtra::ggRadar - faceting using multiple variables

This is leading on from an answer from r combine ggRadar and facet_wrap. In the above question/answer it was shown how to use facets within ggRadar by doing something along the lines of: ggiraphExtra::ggRadar(aes(facet = facetvar1)) This facet…
Jack
  • 173
  • 8
0
votes
0 answers

pan, zoom, and move for geom_sf_interactive in ggiraph

Is there a way to pan, zoom and move a map created with geom_sf_interactive? The demo of the package ggiraphExtra has zoomable and movable maps created with ggChoropleth in the intro doc at http://rpubs.com/cardiomoon/231820 but I have not been able…
Erich Neuwirth
  • 943
  • 7
  • 13
0
votes
1 answer

ggiraph: tooltip with hyperlink?

I am trying to create an interactive scatterplot with ggiraph where the tooltip allows me to navigate to a webaddress (which pertains to the specific selected dot). Any idea whether this is actually possible and how to go about it? Many thanks for…
zoowalk
  • 2,018
  • 20
  • 33
0
votes
2 answers

R Shiny Creating Reactive Single Polygon Plot from multiple variables

The goal is to create an interactive (single) plot in Shiny in which the user can select any of the wanted variables of the dataframe. For now the variable freq_prov_tot is plotted. The plot itself is working, but I do not know how to include other…
0
votes
2 answers

scale_interactive onclick event printed in console

I've build a shiny app with an interactive legend using the scale_fill_manual_interactive function from the beautiful ggiraph package. However, I would like to print the information(male or female, depending on selection) from the onclick event to…
0
votes
0 answers

How to add median value into the tooltip to geom_boxplot_interactive without calculating beforehand?

I'm trying to add the median value into the tooltip in geom_boxplot_interactive(tooltip = ), without having to calculate it for each grouping and joining it to the dataset. I have tried to see if something in stat_summary(), stat or middle would…
Bikash Deb
  • 55
  • 1
  • 7
0
votes
1 answer

Is there a way to preselect points in ggiraph (R shiny)?

I would like to preselect some points in a ggiraph::renderggiraph() output. I can make the following shiny app which allows me to select points and then use those selected points elsewhere like so: dat <- data.table(x = 1:6, y = 1:6 %% 3, id = 1:6,…
michael
  • 153
  • 1
  • 11
0
votes
0 answers

Adding tooltips to geom_map using ggiraph

I just read about the ggiraph package, which seems like it might be what I need to add tooltips to a map created through ggplot. This means I have basically changed my ggplot code so that the geom_map line is geom_map_interactive, and I've added a…
Jaccar
  • 1,720
  • 17
  • 46
0
votes
1 answer

ggiraph plot is shifted in shiny app

This is my example: library(shiny) library(ggplot2) library(ggiraph) df <- data.frame(achseX = c("A", "b"), achseY = c(12, 22)) server <- function(input, output) { output$plot <- renderggiraph({ gg <- ggplot(data = df) +…
Felix Grossmann
  • 1,224
  • 1
  • 11
  • 30
0
votes
0 answers

R FlexDashboard ggiraph chart not showing on second page of dashboard when using IE 11

I have a multi-page R FlexdashBoard and I am trying to use ggiraph to create some interactive charts. They show up fine on the first page of the dashboard, however on the second page the SVG graphics do not show up until I hit refresh then the…
Ian Wesley
  • 3,565
  • 15
  • 34
-1
votes
1 answer

Ggiraph doesn't work with circular stacked barplot

Hi and thanks for reading me I am working with a pie bar chart in ggplot2 and I would like to make it interactive with Ggiraph, but I am not getting this to happen and I do not understand what I am doing wrong, or if it is not possible for this…
1 2 3 4 5
6