chng_pnt_algo: chng_pnt_algo

View source: R/chng_pnt_algo.R

chng_pnt_algoR Documentation

chng_pnt_algo

Description

chng_pnt_algo

Usage

chng_pnt_algo(
  v,
  dat,
  namX = "X",
  namY = "Y",
  col_pt = rgb(0, 0, 0, 0.125),
  col_app = "red",
  col_op = "blue",
  gr_app = T,
  gr_op = T,
  gr_leg = T
)

Arguments

v

The vector which is the concatenation of the (approximate/estimated/initial guess)breakpoints and the (estimated/initial guess)plateau heights vectors

dat

The two column dataframe over which you want to optimize the (plateau/slope) curve. The first column is the x-axis, while the second column is the y-axis

namX

The X-axis label of the output graph(default to 'X')

namY

The Y-axis label of the output graph(default to 'Y')

col_pt

The datapoints colour of the output scatter plot(recommended to use rgb(R,G,B,Tr)) of your raw data

col_app

The colour of the approximated (estimated/initial guess) lines/curve overlayed on your raw data plot(dat), generated using your input vector(v)

col_op

The colour of the calculated/optimized(calculated/optimized by the chng_pnt_algo) line/curve overlayed over your raw data(dat)

gr_app

A binary bit(default set to T) asking whether the user wants to see the approximated/estimated/initial guess curve, derived from vector v, overlayed on the raw data(dat)

gr_op

A binary bit(default set to T) asking whether the user wants to see the optimized/calculated line/curve overlayed on the raw data plot(data)

Value

Returns a list L, containing information about the optimization calculation with the new optimized vector v , new breakpoints Bp and the new heights H.


Chitran1987/StatsChitran documentation built on Feb. 23, 2025, 8:30 p.m.