plot.Rttest: Plot Diagnostics for an Rttest Object

View source: R/Rttest.R

plot.RttestR Documentation

Plot Diagnostics for an Rttest Object

Description

A customizable box plot of the two samples contained within the Rttest object using ggplot2

Usage

## S3 method for class 'Rttest'
plot(
  x,
  main = "Comparison of Value Distripution per Sample",
  sub = NULL,
  poplab = "Population",
  vlab = "Value",
  ...
)

Arguments

x

Rttest object.

main

main title for the plot.

sub

sub-title for the plot.

poplab

a label to denote what population the samples were taken from (default: "Population")

vlab

a label to denote the values of the samples (default: "Value")

...

unused

Examples

x <- rnorm(30,5,2)
y <- rnorm(40,3,2)
a <- 0.1
obj <- Rttest(x, y, a)

plot(obj)
plot(obj, main="My Custom Title", sub="Which also has a sub-title",
     poplab="My Population", vlab="My Value Type")


rsteele5/ttest.rjs documentation built on May 15, 2022, 1:23 p.m.