5 Named Graph Info & Uses Flashcards

1
Q

When would you use a Scatterplot?

A

To visualise the relationship between two numeric values

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

Name 5 graphs

A
Scatterplot,
Linegraph,
Boxplot,
Histogram,
Barplot
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the name for the phenomena of a confusing cluster of points on a scatterplot?

A

Overplotting

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

When overplotting on a scatterplot occurs, what are two ways to address this using R?

A

Alpha = (0:1) for transparency,

geom_jitter (width = x, length = y) for a ‘nudge’

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

When would you use a linegraph?

A

To explore the relationship between two numeric values, when the explanatory value on the X-axis is of a sequential nature.

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

What is the X-axis of a linegraph also known as?

A

The explanatory value, it is sequential. eg, hours, days, weeks.

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

What would you call a linegraph that represents some notion of time?

A

A time series

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

When using the ggplot() package, what sign can we use to add another grammatical component or layer to the code?

A

+

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

How would you see all 657 colours in R?

A

colours()

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

What is a histogram

A

a distribution visualisation of the values in a numerical variable

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

Why might you use a histogram instead of a horizontal line to visualise the distribution of a numerical variable?

A

A histogram makes it easier to visualise a large volume of values.

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

In a histogram, what are the bars?

A

The bars are called bins. They represent the division of the x axis by a determined factor. The height of the bar shows the number of observations for any given value in the variable.

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

In R, you can improve the visualisation of a Histogram using a colour border. How would you write that?

A

geom_histogram(colour = “white”)

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

Why might you change the bin width in a histogram?

A

The default value might not be easy to a useful range to interpret.

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

What are two ways to improve the distribution visualisation if the bin defaults are not useful?

A
  1. change the bin width: bins = 40

.2. Increase or decrease the number of bins: binwidth = 10

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