4 | R: Graphics Flashcards

1
Q

(POLL)

To create a bitmap graphics we can use the command (could be in exam!):
- pdf
- png
- save.image
- none-of-them

A

png

(save.image: does not create a picture but rather a workspace image!! )

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

(POLL)

To plot the distribution of a categorical variable
* assocplot
* barplot
* boxplot
* piechart
* xyplot

A

barplot, piechart

(assocplot is for two vars)

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

(POLL)

To visualize the distribution of a numerical variables we use the command:
* assocplot
* barplot
* hist
* pie

A

hist

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

(POLL)

To create a multifigure plot I can use the function …. (select two):
* figure
* layout
* mfcol
* mfrow
* par

(exam not so tricky questions)

A

layout, par

(mfcol and mfrow are arguments for par)

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

6
To display a mathematical function we use the ______ command.

A

curve()

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

To visualize the distribution of a numerical value we use the ______ function.

A

hist()

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

To visualize the distribution of a factor variable we use the ______ function together with the ______ function.

A

table(), barplot()

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

To compare two groups with regards to a numerical variable we use a ______ .

A

boxplot()

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

To visualise the Pearson residuals of a contingency table we use the ______ function or focus on the proportions in this table we use a ______ .

A

assocplot(), mosaicplot()

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

To display the relationship between two numerical variables we use a ______ .

A

(xy)plot()

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

7
Which of the below are low level commands that can be used to annotate an existing plot?

A
  • points
  • text
  • axis
  • hist
  • boxplot
    points (box), text, axis
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

8
To arrange plots which should take different sizes but should be shown together we use the _____ function with a _____ of integers.

A

layout(), matrix

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

To arrange plots with a regular layout of the same size we can use the _____ command together with the _____ option for instance

A

par(), mfrow

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