Maths and Stats Flashcards Preview

Maths and Stats > Maths and Stats > Flashcards

Flashcards in Maths and Stats Deck (2)
Loading flashcards...
1

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

str(Vocab)

2

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

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