But my fruit_names is 12 elements long and all of them are not showing up on the x-axis. How can I make all the labels appear under corresponding bars in the bar plot?
Please post a copy of your data. To do that, you can use the dput function. Post the output of dput(fruits) and dput(fruit_names) and place a line with three back ticks just before and after the pasted output. Like this
```
You pasted output here
```