- use the `seq()` function to create a vector of even numbers
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet.
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
- Create a vector giving you the correspondence between small case letters and upper case letters.
### Vector challenge
- use the `seq()` function to create a vector of even numbers
```R
all.equal(x, y)
seq(from=2, to=10, by=2)
```
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet. What is the type of this vector.
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
- Create a vector giving you the correspondence between small case letters and upper case letters.
### Vector challenge
- use the `seq()` function to create a vector of even numbers
```R
seq(from=2, to=10, by=2)
```
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet. What is the type of this vector.
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
- Create a vector giving you the correspondence between small case letters and upper case letters.
### Vector challenge
- use the `seq()` function to create a vector of even numbers
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet. What is the type of this vector.
```R
c(1:5, "a", "b", "c")
typeof(c(1:5, "a", "b", "c"))
```
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
- Create a vector giving you the correspondence between small case letters and upper case letters.
### Vector challenge
- use the `seq()` function to create a vector of even numbers
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet. What is the type of this vector.
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
```R
c(1:5, letters[1:3])
```
- Create a vector giving you the correspondence between small case letters and upper case letters.
### Vector challenge
- use the `seq()` function to create a vector of even numbers
- You can concatenate vector with `c(<VECTOR_1>, <VECTOR_2>)`, concatenate a vector of integer with a vector of the first 5 letter of the alphabet. What is the type of this vector.
- Check the default vectors `letters` and `LETTERS`, rewrite your previous command using them.
- Create a vector giving you the correspondence between small case letters and upper case letters.
geom_point(mapping = aes(x = displ, y = hwy, color = class))
```
### Aesthetic mappings
`ggplot2` will automatically assign a unique level of the aesthetic (here a unique color) to each unique value of the variable, a process known as scaling. `ggplot2` will also add a legend that explains which levels correspond to which values.