I'd like to use different legends for 2 of the facets in this plot. The facets for 'Sharks' and 'Tunas' include multiple fish species, so I would like each facet to contain a unique legend for those species. The facets for 'Dorado' and 'Swordfish' only contain one fish species, so no legend is required for them. My plot as it is currently setup provides one common legend for all four facets, and because that includes so many species, it is difficult to distinguish the subtle differences in color shades. I think it would be better just have a different legend for the two facets that have multiple species, and place those legends in the upper right corner of those facets.
ggplot(data=table3, aes(x=Year, y=Weight, fill=Species, color=Species)) + theme_bw() + geom_line(aes(linetype=Group))
+
facet_wrap(~Group, scales = "free", ncol=2) + xlab("Year") + ylab("Landings (round metric tons)") + guides(color = "legend", linetype ="none")