addObsPoints: INTERNAL PACKAGE USE: Add observed data points to a...

View source: R/addObsPoints.R

addObsPointsR Documentation

INTERNAL PACKAGE USE: Add observed data points to a concentration-time plot

Description

addObsPoints adds observed data to ct_plot or ct_plot_overlay and sets the color and shape of those points appropriately. This is NOT meant to be used as a stand-alone function.

Usage

addObsPoints(
  obs_dataframe,
  A,
  AES,
  obs_shape,
  obs_shape_user,
  obs_size,
  obs_color,
  obs_color_user,
  obs_line_trans,
  obs_line_trans_user,
  obs_fill_trans,
  obs_fill_trans_user,
  figure_type,
  MapObsData,
  connect_obs_points,
  line_width,
  LegCheck
)

Arguments

obs_dataframe

observed data as a data.frame

A

the existing ggplot2 graph to which the observed data will be added

MapObsData

TRUE or FALSE for whether to map the observed data to specific columns. Originally from ct_plot_overlay.

connect_obs_points

TRUE or FALSE (default) for whether to add connecting lines between observed data points from the same individual

LegCheck

TRUE or FALSE for whether to include the legend. From ct_plot_overlay originally and should always be TRUE for ct_plot.

Value

a ggplot2 layer with observed data


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.