plot.desk: Simplified Plotting of Regression- and Test-results

plot.deskR Documentation

Simplified Plotting of Regression- and Test-results

Description

This function implements an S3 method for plotting regression- and test-results generated by functions of the desk package. Used for internal purposes.

Usage

## S3 method for class 'desk'
plot(x, ...)

Arguments

x

object of class desk to be plotted.

...

any argument that plot() accepts.

Value

No return value. Called for side effects.

Examples

## Test H1: "phos + nit <> 1"
fert.est <- ols(barley ~ phos + nit, data = log(data.fertilizer))
x = par.t.test(fert.est, nh = c(0,1,1), q = 1, details = TRUE)
x # Show the test results
class(x) # Check its class
plot(x) # Visualize the test result

## Plot confidence (dark) and prediction bands (light), residuals and two center lines
## in a simple regression model
tip.est <- ols(y ~ x, data = data.tip)
class(x) # Check its class
plot(tip.est, pred.int = TRUE, conf.int = TRUE, residuals = TRUE, center = TRUE)

desk documentation built on May 29, 2024, 6:05 a.m.

Related to plot.desk in desk...