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

How to create a scatter plot that will link points that are from a same category on mouse hover?

I want to create a scatter plot that will link points that share a particular attribute when hovered over and also display a tooltip, similar to the example here https://i.stack.imgur.com/fAWem.gif I am currently using ggvis to make the plot,…
Brad
  • 33
  • 4
0
votes
1 answer

Shiny breaks if dynamically change datasets

I am trying to create a shiny app where depending on the dataset, ggvis will create a scatter plot. The app works fine at the beginning. But if I try to change the dataset to mtcars, shiny just disappears. My ui.R…
nafizh
  • 185
  • 3
  • 14
0
votes
1 answer

How to take the value of Radio button to draw a specific ggvis plot?

I have this shiny app where I am taking inputs from the user and depending on the type of plot the user wants it will show that plot. But I am unable to take the value of the radio button on the app and use it to draw a specific ggvis plot because…
nafizh
  • 185
  • 3
  • 14
0
votes
1 answer

ggvis: plotting data in multiple series

Here is what I have: A data frame which contains a date field, and a number of summary statistics. Here's what I want: I want a chart that allows me to compare the time series week over week, to see how the performance of the process this week…
Ryan Fry
  • 61
  • 2
0
votes
1 answer

How can I add a horizontal line in ggvis?

I'm trying to learn ggvis, and I'm working on Boston as a tutorial. Basically, I'm trying to convert the ggplot that I worked on into ggvis on Boston data in R. It seems like I can't add horizontal mean line in ggvis. Although I found some hack…
user1828605
  • 1,723
  • 1
  • 24
  • 63
0
votes
1 answer

Using Shiny to dispay conditional ggvis OR ggplot

Hi im using shiny to display some plots. I need to use both ggplot and ggvis as both have some funtionality the other doesnt have. My problem is I want to display a ggplot when my slider value is less than 100 and the ggvis when it is equal to 100.…
Dave
  • 33
  • 5
0
votes
1 answer

ggvis integrated into a function

I am trying to create a basic function that you enter the currency and the function returns a ggvis linegraph, but an issue occurs due to the quotation marks Current code: ggcurr<-function(curr="AUD"){ fx<-read.csv("rates.csv") …
James Maine
  • 289
  • 2
  • 10
0
votes
1 answer

Plotting a step function in ggvis

I would like to plot a step function in ggvis which factors into two colours by a factor variable. In ggplot this can be achieved for this reproducible example by…
Sölvi
  • 500
  • 5
  • 17
0
votes
1 answer

ggvis figure can't zoom in an embedded shiny app in shiny markdown document

I have a shiny app embedded in a shiny markdown document. If I run the app lonely, the ggvis figure can zoom in and out like the following picture: Pay attention to the small arrow in the rigth bottom. But when I embed this app to shiny markdown…
ysfseu
  • 666
  • 1
  • 10
  • 20
0
votes
1 answer

add tooltip with count to layer_bars

Suppose I have the following graph library(ggvis) mtcars%>% ggvis(~factor(cyl)) %>% layer_bars() How can I add a tooltip with the count variable? Thanks
Ignacio
  • 7,646
  • 16
  • 60
  • 113
0
votes
0 answers

How to handle NULL with ggvis and shiny

I'm writing a Shiny app using ggvis. However, I have some problems with handling NULL values when I decided that I'll use ggvis (and dplyr) instead of ggplot2. The idea of the app is to load a file, display the columns of the file so the user can…
Boris Nikolov
  • 55
  • 2
  • 8
0
votes
1 answer

R ggvis: How do I increase layer_arc size?

I need some help in understanding how to make ggvis marks (in this case layer_arcs) bigger I've been trying to recreate a sunburst diagram in ggvis (v0.4.1) in R (v3.2.0, Windows 7) and have managed to create a data.frame "df_example" where each row…
0
votes
0 answers

Create an interactive stacked plot similar to ggplot2

I am designing a stacked plot in R in order to add it to a shiny app but I would like to create the plot with interactive elements. First, I would describe the plot. I have a matrix Data that looks like this (I add the dput() version in the final…
Duck
  • 39,058
  • 13
  • 42
  • 84
0
votes
1 answer

Shiny ggvis reactivity

I'm trying to create a ggvis plot that responds to a button selection. When I run it, the first button selected will show a great ggvis plot, but once I change the selection, I can see a VERY brief glimpse of the new plot, and then it disappears.…
maia
  • 3,910
  • 4
  • 27
  • 34
0
votes
0 answers

installation of package ‘ggvis’ had non-zero exit status

I'm on Ubuntu 12.04.5 and have R v.3.1.3 installed. I'm using the command install.packages("ggvis") And that yields ERROR: dependency ‘mime’ is not available for package ‘shiny’ …
milia
  • 521
  • 8
  • 20