SyntaxFix
Write A Post
Hire A Developer
Questions
If you read the help file for ?boxplot, you'll see there is a names= parameter.
?boxplot
names=
boxplot(apple, banana, watermelon, names=c("apple","banana","watermelon"))