plot_dtt: Plot Data from simulation models

View source: R/simulation_models.R

plot_dttR Documentation

Plot Data from simulation models

Description

Support function for plotting data generated by any of the simulation model functions simulation_model1() - simulation_model9().

Usage

plot_dtt(
  y,
  grid_points,
  p,
  true_outliers,
  show_legend,
  plot_title,
  title_cex,
  ylabel,
  xlabel,
  legend_pos = "bottomright"
)

Arguments

y

A matrix of n observations by p domain points

grid_points

A vector of the evaluation/domain points of y

p

A value indicating the number of evaluation/domain points

true_outliers

An integer vector indicating the indices of the true outliers

show_legend

A logical indicating whether to add legend to plot if plot = TRUE.

plot_title

Title of plot if plot is TRUE

title_cex

Numerical value indicating the size of the plot title relative to the device default. Set to 1.5 by default. Ignored if plot = FALSE.

ylabel

The label of the y-axis. Set to "" by default.

xlabel

The label of the x-axis if plot = TRUE. Set to "gridpoints" by default.

legend_pos

A character value indicating the position of the legend. Can be one of "bottomright", "bottom", "bottomleft", "left" "topleft", "top", "topright", "right", ""center.


fdaoutlier documentation built on Oct. 1, 2023, 1:06 a.m.