plotJT: display a plot of the obtained Jacobson-Truax indices

Description Usage Arguments Value Examples

View source: R/plotJT.R

Description

This function plotsdata stored in the JTRCIdf dataframe that is outputted by the JTRCI() function. When JTRCI() is run with it's default value 'plot = T', it will call upon either plotRCI() or plotJT() to create a plot. plotRCI() and plotJT() can also be called directly by the user to output plots after having obtained the JTRCIdf (by running JTRCI())

Usage

1
2
3
plotJT(data = JTRCIdf, addInfoLegend = c("yes", "classcounts",
  "JTcrit", "no"), useGroups = F, facetplot = F, addJitter = F,
  xlab = "pre", ylab = "post", plottitle = "Jacobson-Truax plot")

Arguments

data

dataframe to use, default is JTRCIdf.

addInfoLegend

choice of "yes", "classcounts", "JTcrit" or "no": if "yes" (default) both a count of observations within each JT class (or within each class and group) and the type and value of the JT criterion will be added to the plot legends. If "classcounts", only the counts will be added, if "JTcrit" only the criterion-information will be added, and if "no", no additional information will be displayed in the legends.

useGroups

logical. If 'useGroups = T', dots are given different shapes, and counts are given seperately, for each level of the group variable originally provided in the call to JTRCI()

facetplot

logical. If 'facetplot = T', different groups are plotted in separate facets

addJitter

logical. If 'addJitter = T', a small amount of random jitter is added to each data point in the plot.

xlab

label to use for the x-axis.

ylab

label to use for the y-axis.

plottitle

title to show at the top of the plot.

Value

a plot showing Jacobson-Truax indices.

Examples

1
plotJT(xlab = "score pre", ylab = "score post", plottitle = "my JT plot", useGroups = F)

AWKruijt/JT-RCI documentation built on July 9, 2019, 3:54 p.m.