File: data.r

package info (click to toggle)
r-cran-ggvis 0.4.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,716 kB
  • sloc: sh: 25; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
# Data handling tests
library(ggvis)
library(dplyr, warn.conflicts = FALSE)

# Using "." in names of grouped and non-grouped vars
mtcars %>%
  dplyr::mutate(cyl.new = factor(cyl), mpg.new = mpg) %>%
  group_by(cyl.new) %>%
  ggvis(~wt, ~mpg.new, fill = ~cyl.new) %>%
  layer_points() %>%
  save_spec("data/dots.json")