Noise | R Documentation |
In order to test the effect of room noise, subjects were given a test under 5 different sets of conditions: 1) no noise, 2) intermittent low volume, 3) intermittent high volume, 4) continuous low volume, and 5) continuous high volume.
A data frame with 50 observations on the following 5 variables.
subject identifier
score on the test
numeric code for condition
a factor with levels high
low
none
a factor with levels continuous
intermittent
none
data(Noise)
Noise2 <- Noise %>% filter(volume != 'none')
model <- lm(score ~ volume * frequency, data = Noise2)
anova(model)
gf_jitter(score ~ volume, data = Noise2, color = ~ frequency,
alpha = 0.4, width = 0.1, height = 0) %>%
gf_line(score ~ volume, data = Noise2, group = ~frequency, color = ~ frequency,
stat = "summary")
gf_jitter(score ~ frequency, data = Noise2, color = ~ volume,
alpha = 0.4, width = 0.1, height = 0) %>%
gf_line(score ~ frequency, data = Noise2, group = ~ volume, color = ~ volume,
stat = "summary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.