AQSys.data: Dataset and Fitted Function plot

View source: R/AQSys.R

AQSys.dataR Documentation

Dataset and Fitted Function plot

Description

The function returns a plot after fitting a dataset to the mathematical descriptor chosen by the user.

Usage

## S3 method for class 'data'
AQSys(dataSET, modelName = "merchuk", Order = "xy", xmax = "", ymax = "", ...)

Arguments

dataSET

- Binodal Experimental data that will be used in the nonlinear fit. It might hold multiple systems stacked side-by-side. [type:data.frame]

modelName

- Character String specifying the nonlinear empirical equation to fit data. [type:String] The default method uses Merchuk's equation. Other mathematical descriptors can be listed using AQSysList().

Order

Defines how the data is organized in the Worksheet. Use "xy" whether the first column corresponds to the lower phase fraction and "yx" whether the opposite. [type:String]

xmax

Maximum value for the Horizontal axis' value - optional [type:double]

ymax

Maximum value for the Vertical axis' value - optional [type:double]

...

Additional optional arguments. None are used at present.

Details

This version uses the plot function and return a regular orthogonal plot.

Value

return a data.frame with data fitted using the chosen mathematical descriptor.

Examples

# Populating variable dataSET with binodal data
dataSET <- peg4kslt[ , 1:2]
# Fitting dataSET using Merchuk's function
data <- AQSys.data(dataSET, Order = "xy")

Hutchr/LLSR documentation built on May 31, 2022, 11:56 p.m.