data = cbind(c("A","B","C","A"), c("John", "Kendra", "Martin", "Steve"), c("12","12","13","14"))
colnames(data) = c("Group", "Name", "Score")
data = as.data.frame(data)
p = ggplot(data, aes(x=Name, y=Score, fill=Name)) + geom_point(pch = 19, aes(col=Group)) + scale_colour_manual(values=c("black", "red", "green"))
print(p)
Hey, this code produces two legends: Name and Group. How do I get rid of the legend for Name? I mean the entire legend, not just its title. Edit: I have just figured it out myself. You do it by saying:
p = p + guides(fill=FALSE)