Learn R Programming

HWxtest (version 1.1.9)

print.hwtest: S3 Method for printing hwtest objects

Description

Prints test results (hwtest) objects depending on how much detail is provided. If histogram data are present, ggplot2 is used to draw the plot by calling makeHistogram

Usage

# S3 method for hwtest
print(x, detail = NA, statName = NA, plotHisto = TRUE,
  ...)

Arguments

x

the results from a call to hwx.test

detail

0 for no print; 1 for P value only; 2 for all four P values; 3 to add data; 4 to add expected values

statName

which statistic to use

plotHisto

Indicate whether or not to plot the histogram. Only used if hwx.test was called with histobins set to a positive value.

other parameters passed to print.