Questions tagged [ggvis]

The goal of ggvis is to make it easy to describe interactive web graphics in R. It fuses the ideas of ggplot2 and shiny, rendering graphics on the web with vega (so one can draw on the canvas or using svg). It is less flexible than raw d3 or vega, but much more succinct and is tailored to the needs of exploratory data analysis.

From the author(s):

ggvis is a data visualization package for R which lets you:

  • Declaratively describe data graphics with a syntax that is similar to ggplot2.
  • View and interact with the graphics on your local computer, or use them in an interactive web application with shiny.
  • Data manipulation and transformation are done in R, and the graphics are rendered in a web browser, using vega. For RStudio users, ggvis graphics display in a viewer panel, which is possible because RStudio is a web browser.

Data manipulation and transformation are done in R, and the graphics are rendered in a web browser, using Vega. For RStudio users, ggvis graphics display in a viewer panel, which is possible because RStudio is a web browser.

486 questions
0
votes
2 answers

eliminate unused factor values in ggvis Shiny

I want to eliminate not used factor value from x-axis in ggvis plot. I have data.frame choices <- c("Value1", "Value2", "Value3", "Value4", "Value5", "Value6", "Value7", "Value8", …
Nicolabo
  • 1,337
  • 12
  • 30
0
votes
1 answer

shiny + ggvis: reactive using ggvis "tilde" or "~"

All I want is an efficient way to set the ggvis fill property in server.R according to the InputSelect box in ui.R. Since the fill property syntax needs a "tilde" or "~" I was unable to come with a solution. The ui.R and server.R below are just one…
guzu92
  • 737
  • 1
  • 12
  • 28
0
votes
0 answers

Error with filter since updating to ggvis 0.4

I recently updated ggvis and I am now getting an error when I use filter in one of my plots. The error is: "Error in filter(., area %in% eval(input_checkboxgroup(unique(rel_data$area), : (list) object cannot be coerced to type 'double'" My code…
Jack Simpson
  • 1,681
  • 3
  • 30
  • 54
0
votes
1 answer

ggvis plot disappears with tooltip and checkBoxInput Shiny

I have a problem with using tooltip in ggvis in my Shiny app. I would like to use additional info about dot point in ggvis, that's why I create function which need id variable: add_info <- function(x) { if(is.null(x)) return(NULL) if…
Nicolabo
  • 1,337
  • 12
  • 30
0
votes
1 answer

Making a Background for a Line Plot with Ribbon Plot

[Edited Title and crossed off questions that were secondary to the main question] What I want is a simple line plot with points (easy) with a background created by a data frame of tier levels (hard for me) Example for what I am trying to…
mtelesha
  • 2,079
  • 18
  • 16
0
votes
1 answer

range in scale_numeric in ggvis R

Could anyone know why range in scale_numeric in ggvis does not work correctly? library(ggvis) mtcars %>% ggvis(~wt,~hp) %>% layer_points() %>% scale_numeric("x", range = c(2,3)) update when I use domain = c(2,3) this is result: next…
Nicolabo
  • 1,337
  • 12
  • 30
0
votes
0 answers

mouse hover in layer_lines ggvis R

I have similar question as question. Is it possible to see different vaules (using add_tooltip of ggvis) when I click in different place in line? Right now,it shows only one value. mtcars %>% ggvis(~wt, ~mpg) %>% layer_lines() %>% …
Nicolabo
  • 1,337
  • 12
  • 30
0
votes
1 answer

R: Shiny/Ggvis - daterangeInput: Bar graph changes but Tooltip does not

My graph changes, i know this cause the Y axis changes it's limits. But the tooltip for each bar is the same, no matter if i change the daterange. As you see, it says: "Total number of Sessions: 11,610" for the "Directo" source. This is for the…
Omar Gonzales
  • 3,806
  • 10
  • 56
  • 120
0
votes
0 answers

rendered line immediately disappears and hover issues in ggvis

I have two issues that may or may not be related. Here is code that demonstrates both problems UI.r library(shiny) library(shinyBS) shinyUI(fluidPage( titlePanel("Basic example"), fluidRow( mainPanel( # ggvisOutput("fiveMinPlot"), …
hedgedandlevered
  • 2,314
  • 2
  • 25
  • 54
0
votes
1 answer

navbar Page and wrong update of ggvis plot Shiny

HiI just create Shiny app. But there is a little problem when I want to present my Shiny app in navbarPage way. I mean, when I add new navbarPage named Introduction everithing works fine with plot till... I come back to Introduction navbarPage and…
Nicolabo
  • 1,337
  • 12
  • 30
0
votes
1 answer

using ggvis view_static to export html file and dependencies

I am using ggvis (0.4) to make a simple scatter plot, that I want to show on a website. I am using view_static to generate the html file. The docs say I can set the dest parameter to specify the target directory for the html file and dependencies.…
Mo Sander
  • 1,303
  • 1
  • 10
  • 14
0
votes
1 answer

Is it possible to create two ggivs charts from one reactive data source?

For example dataReactive<-reactive({data[, c(input$selectCol)]}) dataReactive %>% ggvis(x=~x,y=~y) %>% layer_points() %>% bind_shiny("plot1") dataReactive %>% ggvis(x=~x) %>% layer_histograms(width=1) %>% …
iboboboru
  • 1,112
  • 2
  • 10
  • 21
0
votes
0 answers

ggvis add_tooltip showing only one value for layer_lines

When hovering over a line graph created with ggvis, I see only the first value of a data.frame displayed, regardless of where I move my mouse. Example: library(ggvis) mtcars %>% ggvis(~wt, ~mpg) %>% layer_lines() %>% add_tooltip(function(df)…
Ben Rollert
  • 1,564
  • 1
  • 13
  • 21
0
votes
0 answers

Hovering over lines in ggvis

I asked this question to the ggvis google group, but thought I'd repost here in case anybody who didn't see that question has any ideas. I'm trying to somewhat replicate the following chart, though I realize that the current version of ggvis may not…
jalapic
  • 13,792
  • 8
  • 57
  • 87
0
votes
1 answer

ggvis: Joining of points with respect to factor levels

I want to connect the values of one variable with respect to the values of other variable. Here in my example I want to connect the values of Y with respect to values of X and Factor. Specifically Y=20 for X=1 and Factor=A should connect with Y=9…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
1 2 3
32
33