Maths and Stats Flashcards
(2 cards)
1
Q
R: To check out the structure of the the Vocab dataset:
A
str(Vocab)
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()