tourbrush: tourbrush

Description Usage Arguments Examples

View source: R/tourbrush.R

Description

tourbrush

Usage

1
tourbrush(df, aps = 2, palette = "Dark2")

Arguments

df

a data frame

aps

angles per second

palette

an RColorBrewer palette

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library(mvtnorm)
s <- matrix(c(1, .5, .5, .5, 1, .5, .5, .5, 1), ncol = 3)
m <- rmvnorm(500, sigma = s)
# take 1D slice of the 3D density
d <- setNames(data.frame(m), c("x", "y", "z"))
d$density <- dmvnorm(m)
tourbrush(d)

vars <- c("pitch_type", "start_speed", "spin_dir", "break_y",
  "break_angle", "break_length")
tourbrush(yu[vars])



## End(Not run)

cpsievert/tourbrush documentation built on May 13, 2019, 10:55 p.m.