I was looking here but I can’t figure it out.
How can I change the word “type” to something else?
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.
Add
to your ggplot call.
Great resource site is also google group for ggplot2.
edit: this assumes that colour is the aesthetic in the legend, e.g.
qplot(x,y,colour=z). If another aesthetic is being shown in the legend, use that as the argument instead, e.g.+ labs(fill = "legend title")for a raster/image plot.More generally, if you specify an explicit scale such as
scale_colour_continuous, you can set thescale_nameargument (warning: the details of the arguments to scales may have changed in recent releases ofggplot2; this description is of version 0.9.2.1).