I wonder why the last case didn't work while the 1st and 2nd ones worked. I'm sure I'm missing something obvious here. Thank you for any help!

```
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg))
lab1 <- as.character(seq(1, 5, 1))
lab2 <- c("One", "Two", "Three", "Four", "Five")
#1:works
p + geom_point(aes(size = qsec, fill = qsec), shape = 21, alpha = 0.7) +
scale_fill_viridis_c(guide = "legend") +
scale_size_continuous(range = c(1, 15)) +
scale_x_continuous(breaks = seq(1, 5, 1),
labels = lab2)
```

```
#2:works too
p + geom_point(aes(size = qsec, fill = qsec), shape = 21, alpha = 0.7) +
scale_fill_viridis_c(guide = "legend") +
scale_size_continuous(range = c(1, 15)) +
scale_x_continuous(breaks = seq(1, 5, 1),
labels = c("1" = "One",
"2" = "Two",
"3" = "Three",
"4" = "Four",
"5" = "Five"))
```

```
#3:error
p + geom_point(aes(size = qsec, fill = qsec), shape = 21, alpha = 0.7) +
scale_fill_viridis_c(guide = "legend") +
scale_size_continuous(range = c(1, 15)) +
scale_x_continuous(breaks = seq(1, 5, 1),
labels = c(lab1[1] = lab2[1],
lab1[2] = lab2[2],
lab1[3] = lab2[3],
lab1[4] = lab2[4],
lab1[5] = lab2[5]))
```

```
Error: unexpected '=' in:
" scale_x_continuous(breaks = seq(1, 5, 1),
labels = c(lab1[1] ="
> lab1[2] = lab2[2],
Error: unexpected ',' in " lab1[2] = lab2[2],"
> lab1[3] = lab2[3],
Error: unexpected ',' in " lab1[3] = lab2[3],"
> lab1[4] = lab2[4],
Error: unexpected ',' in " lab1[4] = lab2[4],"
> lab1[5] = lab2[5]))
Error: unexpected ')' in " lab1[5] = lab2[5])"
```