pull_xy: Pull x and y coordinates from supported R objects for pretty...

View source: R/pull_xy.R

pull_xyR Documentation

Pull x and y coordinates from supported R objects for pretty plotting functions

Description

This function pulls 'x' and 'y' coordinates from some R objects. This is implemented within pretty_axis and pretty_plot to create axes for multiple object types. Suggested x and y axis labels are also returned: these are NULL if automatically defined labels are deemed appropriate or character strings which can be used to replace automatically defined labels.

Usage

pull_xy(x, y = NULL)

Arguments

x

x coordinates or an object from which x and y coordinates can be extracted.

y

y coordinates.

Value

A list with 'x' and 'y' coordinates, extracted from the object x or as inputted, as well as 'xlab' and 'ylab' labels, if manual labels are desirable.

Author(s)

Edward Lavender


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.