layer_guess: Guess the right type of layer based on current properties.

Description Usage Arguments Defaults Examples

View source: R/layer_guess.R

Description

layer_guess provides the magic behind the default behaviour of ggvis.

Usage

1

Arguments

vis

The visualisation to add the new layer to.

...

Other arguments passed on individual layers.

Defaults

Examples

1
2
3
4
5
6
7
# A scatterplot:
mtcars %>% ggvis(~mpg, ~wt)
mtcars %>% ggvis(~mpg, ~wt) %>% layer_guess()

# A histogram:
mtcars %>% ggvis(~mpg)
mtcars %>% ggvis(~mpg) %>% layer_guess()

rstudio/ggvis documentation built on Oct. 4, 2018, 5:44 a.m.