Consider the example plot below. I’d like to make the little boxes around each of the symbols in the legend go away. How an I do this?
ggplot(mtcars, aes(wt, mpg, shape=factor(cyl))) + geom_point() + theme_bw()

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re looking for:
You can see lots of examples of all sorts of this stuff in
?opts. I couldn’t remember off the top of my head which one it was, so I just tried a few until I got it right.Note: Since version 0.9.2
optshas been replaced bytheme: