gather_function_info: collect the ... and apply them appropriately to gsplot

View source: R/gather_function_info.R

gather_function_infoR Documentation

collect the ... and apply them appropriately to gsplot

Description

This function is a higher level internal function that deals with the dirty work of most of the modify type things that happen when adding a function call to a view or a side. This function sequentially filters the arguments into primary function call arguments, option args (things like view/side par args), and "extracted" arguments that inherit param values from the primary function call arguments. These arguments are then used in calls to modify_side, modify_side_par, modify_side_par, modify_view_par, add_to_view, and add_to_legend. Returned object is of class gsplot

Usage

gather_function_info(object, fun.name, ..., legend.name, side, where)

Arguments

object

a gsplot object

fun.name

a function name (character)

...

arguments to be used in the above mentioned functions

legend.name

the name to use for the legend name (can be NULL)

side

the side(s) that the arguments apply to

where

location to put call.args. Can be "first" or "last". Used in add_to_view

Value

a codegsplot object


USGS-R/gsplot documentation built on April 17, 2023, 8:45 p.m.