Learn R Programming

CCI (version 0.3.6)

plot.CCI: Plot for CCI testing

Description

Plot for CCI testing

Usage

# S3 method for CCI
plot(
  x,
  fill_color = "lightblue",
  title.size = 14,
  axis.text.x = 13,
  axis.text.y = 13,
  strip.text.x = 13,
  strip.text.y = 13,
  legend.text = 13,
  legend.title = 13,
  axis.title.x = 13,
  axis.title.y = 13,
  base_size = 13,
  ...
)

Value

A plot of the null distribution and the test statistic in ggplot2 format.

Arguments

x

Object of class 'CCI'

fill_color

Color for the histogram fill

title.size

Size of the plot title

axis.text.x

Size of x-axis text

axis.text.y

Size of y-axis text

strip.text.x

Size of x-axis strip text

strip.text.y

Size of y-axis strip text

legend.text

Size of legend text

legend.title

Size of legend title

axis.title.x

Size of x-axis title

axis.title.y

Size of y-axis title

base_size

Base font size

...

Additional arguments to ggplot2

See Also

print.CCI, summary.CCI, plot.CCI, perm.test

Examples

Run this code
dat <- data.frame(x1 = rnorm(100), x2 = rnorm(100), y = rnorm(100))
cci <- CCI.test(y ~ x1 + x2, data = dat, interaction = FALSE, nperm = 30)
plot(cci)

Run the code above in your browser using DataLab