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

Can googleVis functions be used with custom maps?

GoogleVis seems to connect to google maps to operate. Is it possible to use custom maps, such as shapefiles that could be read via OGR. library(rgdal) counties.rg <- readOGR(".", "kih1897m_region", encoding="UTF-8") So, is there a way to work with…
puslet88
  • 1,288
  • 15
  • 25
4
votes
1 answer

r googleVis: How to control html tooltips (positioning, border and background)

I have figured out how to create custom html tooltips by using roles via googleVis. I can easily modify the content using html but I cannot understand how I can control the tooltip box itself. My problem was generated because some of the custom…
Christos
  • 805
  • 8
  • 25
4
votes
1 answer

GoogleVis and Shiny

I'm trying to create a shiny app that plots data as a bubble chart. The problem I'm having is the subsetting. The user is able to choose the subset of data with some of the inputs. Below is some of the code I have. I keep getting this error:…
GK89
  • 646
  • 5
  • 29
4
votes
1 answer

ggplot2 equivalent of 'factorization or categorization' in googleVis in R

Due to static graph prepared by ggplot, we are shifting our graphs to googleVis with interactive charts. But when it comes to categorization we are facing many problems. Let me give example which will help you understand: #dataframe df = data.frame(…
vrajs5
  • 4,066
  • 1
  • 27
  • 44
4
votes
1 answer

How to hide the series when clicking a legend in googlevis line chart that is embedded in shiny

I have a shiny app with embedded google line charts using the googlevis package. I need to be able to hide a line when clicking on it's legend key. I found this code on how to do it in google charts: $http://jsfiddle.net/xDUPF/4/light/$ How can I…
MoRkO
  • 51
  • 4
4
votes
3 answers

googleVis: multi-level sorting feature gvisTable sortColumn?

Is there a way to do multi-level sorting in a gvisTable in googleVis? I am using Shiny to display a gvisTable like this: x <- gvisTable(tabData,options=list(sortColumn=2,showRowNumber='TRUE',allowHtml='TRUE'),chartid=tabID) I am wondering if there…
719016
  • 9,922
  • 20
  • 85
  • 158
4
votes
1 answer

how to make googlevis plots fit the screen automatically in R

I am trying to make a chart in R via googleVis. How do you make the chart automatically fit the size of the screen, or rather, the browser? library('googleVis') Column <- gvisColumnChart(df, …
user2868104
  • 297
  • 2
  • 14
4
votes
2 answers

Change tooltips via GoogleVis

The code below generates the graph I want to have. Except that I want to add values l to the tooltip. Currently I have no idea how to do this. require(googleVis) df <- data.frame(x = c(1:5), y = c(10, 20 , 30, 40, 50), l =…
jeroen81
  • 2,305
  • 5
  • 29
  • 41
4
votes
0 answers

Scatter plot string in rollover

I have a scatter plot using googleVis and I'd like to define the text shown when I hover over a data point. When I try to use non-numeric data I get an error message. Here's the code: library(googlVis) df1 <- data.frame(id = seq(1,10,1), var1 =…
screechOwl
  • 27,310
  • 61
  • 158
  • 267
3
votes
2 answers

Use selection from gvisTable in shiny

Quick question: How is it possible to use/get the selection of a gvisTable in shiny? I can achieve this with the DT package like this: library(DT) library(shiny) server <- function(input, output) { output$dt <- renderDataTable({ …
Sebastian
  • 2,430
  • 4
  • 23
  • 40
3
votes
2 answers

R create interactive plot with slider which width could be changed like in Google Finance (sizeable time-window)

R create interactive plot with slider which width could be changed, example below, I'm searching in ggvis R package, but other are also welcome :
Qbik
  • 5,885
  • 14
  • 62
  • 93
3
votes
3 answers

Is there a maximum number of points that can be plotted with gvisMap? or gvisMap wont plot all points

EDIT After three days of little interest, I am adding a fully reproducible example... The code below makes 1400 locations. The first 700 points are centered around the first area, the 2nd 700 points are centered around a 2nd area to the northwest. …
B. Davis
  • 3,391
  • 5
  • 42
  • 78
3
votes
2 answers

Remove footers from googleVis output

Is there a way to remove or hide the footer from the googleVis output? Here is what shows up in every googleVis output. Data: sport • Chart ID: TimelineID95891e64f3 • googleVis-0.5.10 R version 3.2.3 (2015-12-10) • Google Terms of Use •…
maluwalmk
  • 337
  • 1
  • 3
  • 8
3
votes
0 answers

Changing legend label in googleVis charts

How do you change the default legend labels in a googleVis chart? What I have tried I see there is a labelInLegend setting, and I can hardcode the options see below: library(data.table) library(googleVis) test.dt <- data.table(day =…
micstr
  • 5,080
  • 8
  • 48
  • 76
3
votes
0 answers

Save gvis Object as png image

I wanted to save the gvis object as .png file Gauge <- gvisGauge(CityPopularity, options=list(min=0, max=800, greenFrom=500, greenTo=800, yellowFrom=300, yellowTo=500, redFrom=0, redTo=300, width=400, height=300)) plot(Gauge) print(Gauge,…
user4827023
1 2
3
19 20