graFromFittedDT: Construct graphs from data tables containing psyFitted...

Description Usage Arguments Value Examples

View source: R/nlregVL.R

Description

Construct graphs from data tables containing psyFitted objects

Usage

1
2
graFromFittedDT(dataT, byC, psyFCol, Xlab = "Duration (seconds)",
  Ylab = "Proportion of Long Responses", Annotate = T)

Arguments

dataT

The data.table containing the psyFitted objects

byC

Name of the columns to contain the factors. There should be no duplicate rows.Can be a character vector or can be a single string with each name separated by commas.

psyFCol

Name of the column containing the psyFitted objects

Xlab

X axis label

Ylab

y axis label

Annotate

If TRUE, graphs will be annotated.

Value

A data table with the byC columns and a column containing ggplots

Examples

1
2
3
data("exampleData",package="nlregVL")
result<-nlregVL::fitLSDT(dataF = exampleData,cD = "Duration",cNbS = "Nb1",cNbL = "Nb3",cBy = "Sub")
result2<-graFromFittedDT(dataT = result,byC = "Sub",psyFCol = "psyF")

VinLaflamme/nlregVL documentation built on May 30, 2019, 2:04 a.m.