modify_layer: Modify layers/geoms used to display a Plinko board

View source: R/modify_layer.R

modify_layerR Documentation

Modify layers/geoms used to display a Plinko board

Description

Modify the geoms on layers used to display the slots, pins, paths, balls, or distribution in a plinko_board(). plinko_board() objects use several geoms to produce the plot of the board; this function allows you to modify arguments and aesthetic mappings passed to those geometries.

Usage

modify_layer(board, name, mapping = aes(), ...)

Arguments

board

A plinko_board() object

name

Name corresponding to the geom to modify: one of "slot_edges", "pins", "balls", "paths", or "dist".

mapping

An aes() object containing entries in the aesthetic mapping for this geom that you wish to change. Missing entries are left as-is.

...

Arguments to the geom you wish to change.


mjskay/plinko documentation built on March 9, 2024, 5:55 a.m.