googlevis

Overlaying shapefiles or raster over interactive maps

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 05:40:41
问题 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, KML, raster data or whatever comes in handy. I know I can easily do this non-interactively using either googleVis , ggmap or RgoogleMaps . But I do not want to use tiles, I want interaction ! Zooming, panning etc., directly from the browser.

gvisScatterChart define series dynamically

ε祈祈猫儿з 提交于 2019-12-05 18:25:23
I am dynamically creating a couple of gvisScatterChart s. I want to define the colors of each line, which I can do using series and the color attribute. There is nothing like an order or a fix number by which I can predefine the colors. So I want to create an array of attributes parallel to my colors and just place it at series=myColors . The problem is that gVis expects a string like: series="[{color: 'black', visibleInLegend: false}]", As soon as I create a string using the paste function gVis doesn't accept them any more and just shows a blank page as chart. (Even when marking the " using \

Chart not generated in R shiny when run locally using googleVis

杀马特。学长 韩版系。学妹 提交于 2019-12-04 15:12:28
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(Sys.Date(), by = 'day', length = n) x = 10 * rnorm(n) y = 3 * x + 1 + rnorm(n) label = rep(LETTERS[1:4

How to split the timestamp in R for Googlevis for no overlap

谁说我不能喝 提交于 2019-12-04 06:03:17
问题 So the timestamp data we are collecting has 19 digits. The first way we ran it, we get these overlaps which shouldn't be there. I was trying to ignore the first 10th digit and try the rest but I get error. How can I display it in a way that has no overlap, and also only contains the duration in minute, seconds, milliseconds or so? because all these experiments are happening almost in the same hour and date so I don't want to show redundant data. library('googleVis') dd <- read.csv("output

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

走远了吗. 提交于 2019-12-03 16:52:02
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 <- sample(c("North ","South ","East ","West "),100,replace=T) destination <- sample(c("North","South","East","West"),100,replace=T) # N.B. It is important to have a space after the second set of destinations to avoid a cycle dummy <- rep(1,100) # For aggregation dat <- data.frame(source,mid,destination,dummy) aggdat <- aggregate(dummy~source+mid+destination,dat

Editing Google motion chart

谁都会走 提交于 2019-12-03 14:40:47
问题 I am using Google Motion Chart with Shiny R and I am not able to edit some of the basic things. I am new to Shiny R and already started loving it. Here is my code: ui.R library(shiny) shinyUI(( mainPanel( h4("Interactive Analytics"), htmlOutput("view_gviz") ) )) shiny.R library(shiny) library(googleVis) sample_data <- structure(list(YEAR = c(2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2001L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L, 2002L,

plotting barchart in popup using leaflet library

依然范特西╮ 提交于 2019-11-30 19:48:05
Quick question all. I have some data in sql server which i have loaded into RStudio. I have made a barchart for the data and now i am using leaflet library with the use of latitude and longitude to plot a point on the map. I want to be able to use popup to show a barchart in it when the user clicks on the point. BarChart code (maybe this is a problem because i am using googleVis library so not sure if i can use this in the popup. but again this is the most appropriate bar graph i can make and need- other suggestions could be helpful as i am not a professional in R libraries yet) Switzerland <-

plotting barchart in popup using leaflet library

。_饼干妹妹 提交于 2019-11-30 04:17:09
问题 Quick question all. I have some data in sql server which i have loaded into RStudio. I have made a barchart for the data and now i am using leaflet library with the use of latitude and longitude to plot a point on the map. I want to be able to use popup to show a barchart in it when the user clicks on the point. BarChart code (maybe this is a problem because i am using googleVis library so not sure if i can use this in the popup. but again this is the most appropriate bar graph i can make and

Knitr does not render googleVis

喜你入骨 提交于 2019-11-29 13:51:14
I have a trouble with Rsutdio and knitr in Windows 7 for rendering a simple gvisTable. Here is my code ```{r results='asis'} require(googleVis) op <- options(gvis.plot.tag="chart") data(iris) t = gvisTable(data = iris) print(t) ``` and here is my error : pandoc.exe: Failed to retrieve https://www.google.com/jsapi?callback=displayChartTableID14c4345d7f3 FailedConnectionException2 "www.google.com" 443 True connect: failed (Connection timed out (WSAETIMEDOUT)) Erreur : pandoc document conversion failed with error 61 My Rstudio version is : 0.98.1091 And my SessionInfo is : R version 3.1.2 (2014

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

岁酱吖の 提交于 2019-11-29 07:51:49
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( x = sample(1:100), y = sample(1:100), cat = sample(c('a','b','c'), 100, replace=TRUE) ) ggplot2 provides parameter like alpha, colour, linetype, size which we can use with categories like shown below: ggplot(df) + geom_line(aes(x = x, y = y, colour = cat)) Not just line chart, but majority of ggplot2 graphs provide categorization based on column