proto_point: Tour proto for data point

Description Usage Arguments See Also Examples

View source: R/2_ggproto_visualize.r

Description

Adds geom_point() of the projected data.

Usage

1
proto_point(aes_args = list(), identity_args = list())

Arguments

aes_args

A list of aesthetic arguments to passed to geom_point(aes(X). Any mapping of the data to an aesthetic, for example, geom_point(aes(color = myCol, shape = myCol)) becomes aes_args = list(color = myCol, shape = myCol).

identity_args

A list of static, identity arguments passed into geom_point(), but outside of aes(), for instance geom_point(aes(...), size = 2, alpha = .7) becomes identity_args = list(size = 2, alpha = .7).

See Also

Other ggtour proto: filmstrip(), ggtour(), proto_basis(), proto_default(), proto_density(), proto_hex(), proto_highlight(), proto_origin(), proto_text()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
dat <- scale_sd(tourr::flea[, 1:6])
clas <- tourr::flea$species
gt_path <- tourr::save_history(dat, grand_tour(), max_bases = 5)

ggt <- ggtour(gt_path, dat, angle = .1) +
  proto_point()
## Not run: 
animate_plotly(ggt)
## End(Not run)

ggt2 <- ggtour(gt_path, dat) +
  proto_point(list(color = clas, shape = clas),
              list(size = 2, alpha = .7))
## Not run: 
animate_plotly(ggt2)
## End(Not run)

spinifex documentation built on Sept. 28, 2021, 5:09 p.m.