I\'m trying to remove the title of a legend in ggplot2:
ggplot2
df <- data.frame( g = rep(letters[1:2], 5), x = rnorm(10), y = rnorm(10) ) lib
For Error: 'opts' is deprecated. Use theme() instead. (Defunct; last used in version 0.9.1)' I replaced opts(title = "Boxplot - Candidate's Tweet Scores") with labs(title = "Boxplot - Candidate's Tweet Scores"). It worked!
Error: 'opts' is deprecated
theme()
opts(title = "Boxplot - Candidate's Tweet Scores")
labs(title = "Boxplot - Candidate's Tweet Scores")