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

RStudio TreeMap-Idvar does not match Parentvar

I am trying to create a Tree plot using gvisTreeMap. But I receive an Error: "Error in gvisCheckTreeMapData(data, my.options) : parentvar and idvar do not fit together." I am very new to R. Can anyone know how to remove the Error and make it…
2
votes
1 answer

My gvisBubbleChart Plot in Shiny R stops displaying when I attempt to introduce a dynamic selectInput field

I have encountered this problem while developing an app, and reproduced it here in a simplified script using Fruits df. Basically, i have selectInput box to select a Year, which is a column in Fruits. I create unique list of Years, and feed it into…
JustLearning
  • 180
  • 2
  • 12
2
votes
1 answer

googleVis minimizes text and tables in R markdown

I'm trying to make a report with R markdown, kable and googleVis. It almost works perfectly fine, the tables and graphs are produced. However, if I try to put graphs AND tables in the rmarkdown, the tables and any text that is not a header is…
Denise
  • 23
  • 5
2
votes
1 answer

Customize googleVis Sankey diagrams in R to add customised tool tip

I managed to plot a sankey diagram as following, col1 contains the ids set.seed(1000) df <- data.frame(col1= sample(c(1:15), 15, replace = F), col2=sample(c("aa", "bb","cc"), 15, replace=TRUE), col3=sample(c('a','b','c','d'), 15, replace=TRUE,…
andy
  • 643
  • 2
  • 12
  • 20
2
votes
0 answers

Include local image in shiny

I'm trying to include a picture from my ubuntu machine into a gvisTable. The path is specified as And the folder structure looks like this: +---/srv/shiny-server | +---shinyApp | +---server.R | +---ui.R | …
Sebastian
  • 2,430
  • 4
  • 23
  • 40
2
votes
1 answer

Unclear columns of googleVis Regions Dataset

What does the 3rd and 4th column( Val & Fac resp) in Regions data set signifies and how are those values obtained?
2
votes
1 answer

Adding a title to gvisGeoChart

I am having trouble adding a title to gvisGeoChart in the googlevis package. Here is the code I am using: test <- gvisGeoChart(state.data[["MA"]], locationvar = 'Location', colorvar = 'RateofLVP', options=list(region="US-MA", …
ChrisYee90
  • 389
  • 1
  • 6
  • 12
2
votes
1 answer

Format tooltip in googleVis

I would like to format number (add big.mark) in tooltip in googleVis chart. Yesterday I asked this quesion: Hover style of label in googleVis and got the answer. Today, I've got quite simillar problem - the difference is that there are more than one…
Marta
  • 3,032
  • 3
  • 17
  • 34
2
votes
0 answers

Error in event handler for (unknown): ReferenceError: result is not defined

I am developing with Javascript and Google Charts, and while testing code I've been noticing that I always receive this error in the Google Developers Console: Error in event handler for (unknown): ReferenceError: result is not defined at…
Cris
  • 2,002
  • 4
  • 30
  • 51
2
votes
1 answer

googleVis does not work properly with two dependent widget shiny

I try to implement a simple shiny app with two dependent widgets.At first everything works fine but a problem occurs when I change a continent value i.e. a map disappears. Do you know what I should add to avoid this…
Nicolabo
  • 1,337
  • 12
  • 30
2
votes
1 answer

Recoding data.fame object from latin1 to utf-8

I work with windows 7 (my system: "LC_COLLATE=French_France.1252) with data with accents. My data are coded in ANSI which allows me to visualize them correctly in the tabs of Rstudio. My problem: When I want to a create GoogleVis page (encoding…
Wilcar
  • 2,349
  • 2
  • 21
  • 48
2
votes
1 answer

How to set a constant color scale with Shiny + gvisGeoChart?

I was able to create an interactive geoChart using the scripts below though, the problem is that the scale to distinguish map color changes each day. My data set is a year worth of daily stats by every state in US. For instance, for day 1, the scale…
Ryo
  • 157
  • 2
  • 3
  • 15
2
votes
1 answer

googleVis (gvisTable) not rendering with shinydashboard app on R

I am currently building an application with shinydashboard and googleVis. gvisTable is in my opinion the best way to show my outputs. My problem is the following: The application (and thus, googleVis) works perfectly with the R browser on my…
Geoffrey
  • 21
  • 2
2
votes
2 answers

Duplicating GoogleVis chart in Rshiny

I need the same googlevis chart more than once in my Rshiny dashboard but when I try to do this, charts do not load properly. For example, in the following code, if I plot the chart one time only it runs fine. Otherwise, both charts don't load. Any…
M.Qasim
  • 1,827
  • 4
  • 33
  • 58
2
votes
1 answer

similar to ggplot options in googlevis in R

Example from R graphics cookbook pg 55. ggplot(tg, aes(x=factor(dose), y=length, colour=supp, group=supp)) + geom_line() Looking for a similar plotting options in googlevis, on how to specify the fill options or color option which is a factor…
vinsent paramanantham
  • 953
  • 3
  • 15
  • 34