googlevis

GoogleVis chart not rendering in Rmarkdown

给你一囗甜甜゛ 提交于 2020-04-13 06:58:07
问题 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 googleVis version 0.5.10 Please read the Google > API Terms of Use before you start using the package: > https://developers.google.com/terms/ > > Note, the plot method of googleVis will by default use the standard > browser to display its output.

Remove footers from googleVis output

霸气de小男生 提交于 2020-01-14 14:25:50
问题 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 • Documentation and Data Policy 回答1: create your visualization M <- gvisColumnChart(data, xvar = "", yvar = "", options = list(), chartid) then remove the footers and captions M$html$footer <- NULL M$html$jsFooter <- NULL M$html$caption <- NULL then print or

gvisTables not rendering in Shiny apps

旧巷老猫 提交于 2019-12-31 00:43:20
问题 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 Shiny, in that the comma-separated formatting causes DT::renderDataTable to read in numbers as character, which affects how the numbers are sorted. (DT's number formatting functionality does not work with Shiny, it appears.) Where I'm at so far: The

Google Chart Overlays using googleVis package in R

☆樱花仙子☆ 提交于 2019-12-25 04:43:28
问题 Google Charts has overlay functionality that allows you to put an image over a plot at a specified position. Is this possible in the googleVis package or do I need to edit the chart html ad hoc to include an overlay? 回答1: You can add an overlay to a Google map using my googleway package. To use Google Maps you need a valid API key library(googleway) map_key <- 'your_api_key' google_map(key = map_key) %>% add_overlay(north = 40.773941,south = 40.712216, east = -74.12544, west = -74.22655,

R googleVis to png file

≯℡__Kan透↙ 提交于 2019-12-24 15:03:32
问题 I have the following code that works fine. I would like to know if it's possible to take this and export it as a png file. Anyone know of an easy way to do this. I'm just getting started in the R world so a noob. Here is my code library(RODBC) library(googleVis) con <- odbcConnect("Live", uid="Rxyzuser", pwd="xxxxx") attendees <- sqlQuery(con, "exec rpt_r_vis") regCal <- gvisCalendar(attendees, datevar="Reg_add_date", numvar="Counts", options=list( title = "Registrations per Day Heatmap",

Recoding data.fame object from latin1 to utf-8

纵然是瞬间 提交于 2019-12-24 00:47:13
问题 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 utf-8), the accented characters are not displayed correctly. What I expected: I am looking to convert my latin1 Data.frames in utf-8 with R just before creating googleVis pages. I have no ideas. Stringi package seems only to work with raw data. fr <-

Shiny googleVis GeoChart not displaying with reactive switch

杀马特。学长 韩版系。学妹 提交于 2019-12-22 12:17:14
问题 I have trolled the internet for about a day trying to resolve this issue. I have a shiny application where the user can switch databases out the output is displayed in a googleVis geochart. The chart renders perfectly without the switch being used, but once the switch is used in the UI the chart dispears. I have temporarily resolved the issue with an actionButton and an eventReactive statement, but that means the user has to hit the button for the chart to refresh (not optimal). I am

Chart not generated in R shiny when run locally using googleVis

前提是你 提交于 2019-12-21 21:38:22
问题 These are the codes for my UI and server. The issue that I am facing is that when the app is run locally the charts are not being generated. ui.R library(googleVis) library(shiny) shinyUI(fluidPage( titlePanel(" Tool"), sidebarLayout( sidebarPanel( radioButtons(inputId="choice", label="What would you like to see?", choices=c("Overall ","Individual")) ), mainPanel( htmlOutput("View") ) ) )) server.R library(googleVis) require(googleVis) shinyServer(function(input, output) { n = 100 dates = seq