Questions tagged [googlevis]

The googleVis package provides an interface between R and the Google Chart Tools, formerly know as Google Visualisation API.

The googleVis package provides an interface between R and the Google Chart Tools, formerly know as Google Visualisation API. It allows users to create web pages with interactive charts based on R data frames, using the Google Chart Tools and to display them either via the local R HTTP help server or within their own sites, without uploading the data to Google.

Resources:

294 questions
5
votes
1 answer

googleVis in markdown throws error 67

Markdown which previously rendered nicely in html simply using the Rstudio 'knit' button now will not. This is windows, R3.4.1, and updated knitr and rmarkdown, and the whole worked fine last week. I have minimal .rprofile, and have no packages…
Gerry
  • 113
  • 7
5
votes
1 answer

Flexdashboard containing runtime:shiny saves html output in tmp folder and the html file shows a blank page

I have been searching for this problem for a few hours and I cannot seem to find the right solution. I would appreciate any help regarding how to fix this. I have a flexdashboard in my RStudio Server, and in it, I have one gvisGeoChart that I have…
Nazaniiin
  • 51
  • 4
5
votes
1 answer

How to make a googleVis multiple Sankey from a data.frame?

Aim I am aiming to make a multiple Sankey in R using the googleVis package. The output should look similar to this: Data I've created some dummy data in R: set.seed(1) source <- sample(c("North","South","East","West"),100,replace=T) mid <-…
user2174781
5
votes
1 answer

How do I prevent googleVis from shortening labels?

I have some googleVis charts in a shiny app, but googleVis shorten the label on the horizontal axis by default when they are too long. How do I prevent this behavior? The example below replicates the behavior I would like to…
Dambo
  • 3,318
  • 5
  • 30
  • 79
5
votes
2 answers

Overlaying shapefiles or raster over interactive maps

I'm using R, and I want to overlay some raster data (e.g. a temperature map from a model) over an interactive map which allows panning and zooming. Ideally, I'd like to overlay over Google Maps or OpenStreetMaps. The input data can be in shapefiles,…
AF7
  • 3,160
  • 28
  • 63
5
votes
1 answer

renderGvis does not work in rmarkdown

I tried to display a googleVis chart in a rmarkdown page but it doesn't work... Instead, it displays the R code verbatim in the browser. Result function () { chart <- func() paste(chart$html$chart, collapse = "\n") }
fatdragon
  • 2,211
  • 4
  • 26
  • 43
4
votes
0 answers

How to color two links coming out of the same node (or going to the same node) with different colors using gvisSankey?

I am creating a Sankey diagram using googleVis in R. I want to to color links of nodes that "advance" in one color, links of nodes that "regress" in another, and links of nodes that "stay the same" in a third color. For example: A1 -> B3 means…
Raul Torres
  • 187
  • 1
  • 6
4
votes
2 answers

Saving gvisGeoMap object to png

How can I save a gvis object from googleVis to png? ggvis has export_png but that doesn't work for googleVis. I saw several asking this but is there really no way? test_data <- data.frame(count=c(1,2,5),group=c("Australia","Austria","China")) p <-…
Jan Stanstrup
  • 1,152
  • 11
  • 28
4
votes
2 answers

Assigning node and link colors in R googleVis sankey chart

Picking up on this question, I'm trying to assign a set of colours to nodes, and hopefully links with the gradient mode, in a Sankey chart using GoogleVis package in R. The issue is that I have the same categories in each of the 3 sets of nodes, and…
Phil
  • 7,287
  • 3
  • 36
  • 66
4
votes
2 answers

GoogleVis chart not rendering in Rmarkdown

Outside of Rmarkdown the stand alone googleVis chart works fine, but when I plug it in the Rmarkdown file I am receiving just the Rmarkdown Code: Viewer Output: > TEST H 4/13/2016 require(googleVis) Loading required package: > googleVis Welcome to…
Shaka
  • 41
  • 4
4
votes
0 answers

How to move starting node in D3 googleVis Sankey graph

I have drawn a Sankey graph in D3 using the googleVis. But I want to reposition the nodes on the x-axis based on the number in the name of the node. i.e Right now all starting nodes appear on the left side, and they end on the right side. I want…
SharpObject
  • 597
  • 5
  • 17
4
votes
3 answers

R interactive plot: show vertical line on hover

I have been looking around for a way to draw a vertical line along the x-axis when hovering over points in a plot using R. It does not really matter which package it is, whether it is plotly, ggvis, rCharts, googleVis or any other for that matter,…
Jam
  • 75
  • 3
  • 9
4
votes
2 answers

GoogleVis does not show chart in RStudio

I am trying to use googleVis-0.5.10 with RStudio 0.99.473 on Windows 7. I can generate charts just fine, but they always opened in a new browser window. The code is simple, no extra options are set: lineChart <- gvisLineChart(data, …
Sergei
  • 1,617
  • 15
  • 31
4
votes
1 answer

Using Javascript to configure a googleVis event listener in Shiny

Basically, I have a gvisCalendar Chart from the googleVis package in a Shiny app, and I want to display a dataTable underneath the chart that corresponds to a selected box. I can add an event listener by setting the gvis.listener.jscode argument to…
Hannah Murphy
  • 119
  • 1
  • 9
4
votes
1 answer

gvisTables not rendering in Shiny apps

The actual issue I'm trying to solve: I'm creating a dashboard which will include data tables. I would like for numbers to be formatted with commas as thousands separators, but there is (apparently) an issue with the DT package when it's used with…
1
2
3
19 20