Maths and Stats Flashcards

(2 cards)

1
Q

R: To check out the structure of the the Vocab dataset:

A

str(Vocab)

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

R: Using ggplot, create a bar graph of the count data for ‘cyl’, where the bars are coloured by ‘am’.

A

ggplot(mtcars, aes(x = cyl, fill = am)) +

geom_bar()

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