Boxplot Help, I am extremely new to Rstudio

Apologies if this is a simply solution however I am extremely new to RStudio and need help :frowning:
this is my current input:

boxplot(Basket Size~Payment,data=BasketData_C6, main="BasketSize Data",
xlab="Payment", ylab="Basket Size")

It keeps saying:

Error: unexpected symbol in "boxplot(Basket Size"

    xlab=("Payment") ylab="Basket Size")

Error: unexpected symbol in " xlab=("Payment") ylab"

No matter what I do nothing seems to fix it?? :frowning:
Any help would be appreciated :((

Try using

boxplot(`Basket Size`~Payment,data=BasketData_C6, main="BasketSize Data",
xlab="Payment", ylab="Basket Size")

Space between Basket and Size? Maybe you meant **BasketSize?

boxplot(BasketSize~Payment,data=BasketData_C6, main="BasketSize Data",
xlab="Payment", ylab="Basket Size")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.