plot_table: Plot an element of class mvarLayer

Usage Arguments Value

View source: R/plot_table.R

Usage

1
plot_table(table_slot, opts = list(), p = ggplot(), table_ix = 1)

Arguments

table_slot

An object of class mvarLayer

opts

A list of lists, giving directions for the aesthetic mapping. We expect three component lists, though they will be filled in with default values, so they only need to be partially specified. $layers_list: A list whose names are any of "point", "text", and "arrow", and whose corresponding values are TRUE if that layer is to be added to the plot and FALSE otherwise. $aes_list: A list whose names are any of "col", "shape", "size", or "text", and whose values are the names of the coordinates or annotation columns to be used in defining aesthetics. $facet_vector: A vector of annotation column names to be used in in faceting.

p

A ggplot object on which to build on top of. Defaults to an empty object.

table_ix

The layer number of the current table, which is used to ensure different layers have different colors (in the case that color is not an aesthetic determined from data).

Value

p A ggplot object mapping the layers specified in the arguments.


krisrs1128/mvarVis documentation built on Oct. 13, 2019, 11:14 p.m.