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

How add more information in tooltip cloude in ggiraph packages in R?

I would like to create a cloud which shows information about the point using tooltip in ggiraph packages. I can create a cloud with only one information (from one column), but I would like to add information from three columns. Below I added a…
Sin
  • 135
  • 1
  • 9
5
votes
1 answer

ggiraph plot not appearing in shiny app, but works in RStudio

I really want to use ggiraph to add tooltips in my shiny app. However, when I try to do so the plot does not appear. In the example below I used a plotOutput and ggiraphOutput but only my.plot appears. I can produce the interactive plots in RStudio,…
Sarah W
  • 53
  • 4
5
votes
2 answers

ggiraph plot doesn't resize to fit the page

Here is my code: library(shiny) library(ggplot2) library(ggiraph) df <- data.frame(achseX = LETTERS[1:24], achseY = 1:24, facetX = as.factor(rep(1:4, each = 6))) server <- function(input, output) { output$ggplot <- renderPlot({ ggplot(data =…
Felix Grossmann
  • 1,224
  • 1
  • 11
  • 30
3
votes
3 answers

Error: ! Problem while converting geom to grob. ℹ Error occurred in the 1st layer

I am running the examples at this link. After re-installing ggiraph, the same code that was working before, returns this error Error: ! Problem while converting geom to grob. ℹ Error occurred in the 1st layer. Caused by error in `check.length()`: !…
giulia
  • 63
  • 1
  • 6
3
votes
2 answers

Create selection for filter based on interactive ggplot using javascript

I created the following Rmarkdown file to make a selection based on clicking an interactive ggplot. In the javascript chunk I would like to use instead of "A" the letter (A or B) obtained from the onclick event in the interactive ggplot. If the user…
mharinga
  • 1,708
  • 10
  • 23
3
votes
2 answers

R Shiny ggiraph and d3heatmap Compatibility Issues

I'm trying to add an interactive heatmap to my Shiny app, but I also have interactive graphs using ggiraph. I'm currently using the d3heatmap package, but the heatmaps don't render in the app. I've created a toy example to illustrate…
Melissa
  • 35
  • 2
3
votes
1 answer

R ggiraph with ggmap for interactive/reactive longitude and latitude points - scale or axis issue?

The new ggiraph package is really great for making ggplot2 reactive to users' mouse, no problems. However I'm having trouble getting this to work properly with ggmap() for interactive/reactive longitude and latitude points. The interactivity works…
2
votes
1 answer

How to to insert R (interactive or not) graphics in the tooltips of a ggiraph?

I'd like ultimately to insert R (interactive or not) graphics in the tooltips of a ggiraph. Using an iframe as I successfully did before with leaflet, it would look like this: library(ggplot2) library(ggiraph) library(htmltools) p <- {ggplot() + …
doana
  • 35
  • 4
2
votes
2 answers

Increase space for long axis labels in radar chart

I want to create a radar chart with ggirahExtra::ggRadar. The problem is that I have long labels and they are clipped. I thought I could create more space between label and plot by adding margin = margin(0,0,2,0, "cm") to element_text in axis.text,…
TimTeaFan
  • 17,549
  • 4
  • 18
  • 39
2
votes
1 answer

Tooltip in geom_raster_interactive not returning correct value

I am trying to use geom_raster_interactive in ggiraph to create a map where I can view values of each grid cell using the tooltip function. However, when I set tooltip = value, the tooltip returns the same value for every grid cell in the tooltip. I…
2
votes
1 answer

Shiny: Error: invalid quartz() device size when trying to render second dependent plot

Total Shiny novice here. I'm trying to render a second plot in Shiny using the eventID selected in the first ggiraph plot. I'm able to get the first plot to render, but I automatically get a Error: invalid quartz() device size for the second plot…
D Kincaid
  • 167
  • 1
  • 13
2
votes
1 answer

Can a ggiraph interactive plot be the size of the window in R shiny?

I am creating an RShiny app that centres around a network drawn in ggiraph. The network is very large and detailed so ideally I'd like it to fill as much of the page as possible. I've had a lot of problems getting ggiraph to scale properly, and also…
Quinn
  • 419
  • 1
  • 5
  • 21
2
votes
2 answers

Plot list of plots in GGiraph

I am trying to plot a list of plots using GGiraph in Rstudio. The solution to plot multiple plots is either through Cowplot (ggobj = plot_grid(plot1, plot2)) or Patchwork (code = print(plot / plot)). This works if you individually print single…
2
votes
1 answer

How to change encding of column names to utf 8 in R

I've got a daata frame with Russian colnames in UTF-8. I do some lineer modeling with purrr and explore coefficients with broom::tidy(), then I receive a data frame with mixed column name encodings, which I cant pass to girafe(), it crushes with an…
2
votes
1 answer

Error libxml-2.0 not found when installing ggiraph

Trying to install R package ggiraph on my Mac OS X I ran into a problem with dependency xml2. This seems to be a fairly common problem for users of this and other packages so after reading threads here and elsewhere I confirmed the…
pengzell
  • 33
  • 4
1
2 3 4 5 6