Helper function to remove NAs for loon plots

na_omit_loon(x, y = NULL, linkingKey = NULL, itemLabel = NULL)

Arguments

x

The vector of x values (required)

y

The vector of y values (optional) of the same length as x; if NULL then it's ignored.

linkingKey

The vector of keys used to define links between points, of the same length as x; if NULL it will be 0:(length(x)-1).

itemLabel

The vector of labels for the points, of the same length as x; if NULL it will be constructed.

Value

A list(x, y, linkingKey, itemLabel) where any NA in x or y will have been omitted from all

See also

Other graphical tools: l_ispace_config(), plot_region(), vport(), zenarrow()

Author

R. W. Oldford