Skip to contents

R6 class for mapping x, y, of observed data for a time profile plot

Super classes

tlf::XYDataMapping -> tlf::XYGDataMapping -> ObservedDataMapping

Public fields

error

mapping error bars around scatter points

mdv

mapping missing dependent variable

ymin

mapping error bars around scatter points

ymax

mapping error bars around scatter points

Methods

Inherited methods


    Method new()

    Create a new ObservedDataMapping object

    Usage

    ObservedDataMapping$new(
      x,
      y,
      uncertainty = NULL,
      error = NULL,
      ymin = NULL,
      ymax = NULL,
      mdv = NULL,
      color = NULL,
      shape = NULL,
      group = NULL,
      data = NULL
    )

    Arguments

    x

    Name of x variable to map

    y

    Name of y variable to map

    uncertainty

    mapping error bars around scatter points. Deprecated parameter replaced by error.

    error

    mapping error bars around scatter points

    ymin

    mapping lower end of error bars around scatter points

    ymax

    mapping upper end of error bars around scatter points

    mdv

    mapping missing dependent variable

    color

    R6 class Grouping object or its input

    shape

    R6 class Grouping object or its input

    group

    R6 class Grouping object or its input

    data

    data.frame to map used by .smartMapping

    Returns

    A new ObservedDataMapping object


    Method checkMapData()

    Check that data variables include map variables

    Usage

    ObservedDataMapping$checkMapData(data, metaData = NULL)

    Arguments

    data

    data.frame to check

    metaData

    list containing information on data

    Returns

    A data.frame with map and defaultAes variables. Dummy variable defaultAes is necessary to allow further modification of plots.


    Method clone()

    The objects of this class are cloneable with this method.

    Usage

    ObservedDataMapping$clone(deep = FALSE)

    Arguments

    deep

    Whether to make a deep clone.