Week 17- R studio Flashcards

1
Q

How do you set the x-axis limits and what is the function of doing so

A

(((add to end of your ggplot calculation)))
xlim(0,40) +
geom_vline(xintercept = mean(studytwo$SHIPLEY), colour = “red”, size = 1.5)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Editing the appearance of the plot- alpha, size, colour, shape, theme, labels

A

ggplot(data = studytwo, aes(x = SHIPLEY, y = mean.acc)) +
geom_point(alpha = 0.5, size = 2, colour = “purple”, shape = ‘triangle’)
theme_bw() +
labs(x = “Vocabulary(SHIPLEY)”, y = “Mean accuracy”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Setting x-axis and y-axis limits to the minimum-maximum ranges

A

ggplot(data = studytwo, aes(x = SHIPLEY, y = mean.acc)) +
geom_point(alpha = 0.5, size = 2, colour = “purple”, shape = ‘star’) +
theme_bw() +
labs(x = “Vocabulary(SHIPLEY)”, y = “Mean accuracy”) +
xlim(0, 40) + ylim(0, 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Reminder on running correlations

A

cor.test(studytwo$mean.acc,
studytwo$HLVA,
method = ‘pearson’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly