addObsPoints | R Documentation |
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.
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
)
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. |
a ggplot2 layer with observed data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.