I've been searching for an answer to why my legend labels aren't changing. so far, labs() is the only way I've managed to change the title. scale_fill_discreate/manual() don't seem to work.
Any ideas?
ggplot(na.omit(VMSdat), aes(x = mach_type, fill=mach_type, y= interest_lvl)) +
labs(title = "Average Level of Interest in Studio machines by Medical\nand Vetrinarian School students", x = "Machine Type", y = "Level of Interest")+
labs(fill="Machine Type")+
scale_fill_manual(name = "Machine type", labels=c("CNC milling", "Die Cutter", "Electronics", "3D Printing","3D Scanning", "Vacuum Former", "Virtual Reality"))+
facet_wrap(~schoolName)+
geom_bar(position=position_dodge(), stat="summary", fun.y="mean")+
coord_cartesian(ylim = c(.2,5)) +
theme(axis.title=element_text(size=12))+
theme(legend.title = element_text(size=12), legend.text=element_text(size=11))+
scale_fill_brewer(palette="Set1")