Learn R Programming

fastR2 (version 1.2.4)

MathNoise: Test performance and noise

Description

In this experiment, hyperactive and control students were given a mathematics test in either a quiet or loud testing environment.

Arguments

Format

A data frame with 40 observations on the following 3 variables.

score

score on a mathematics test

noise

a factor with levels hi lo

group

a factor with levels control hyper

Examples

Run this code

data(MathNoise)
xyplot (score ~ noise, data = MathNoise, group = group, type = 'a', 
		auto.key = list(columns = 2, lines = TRUE, points = FALSE))

gf_jitter(score ~ noise, data = MathNoise, color = ~ group, alpha = 0.4, 
          width = 0.1, height = 0) %>%
  gf_line(score ~ noise, data = MathNoise, color = ~ group, group = ~ group,
        stat = "summary")

Run the code above in your browser using DataLab