I am using ggplot and geom_line to plot a graph in R, but I see that the labels are being over-written by the plot. Is there any way I can address this issue and have the labels be visible clearly? Also, I would like to have the words "Gross sales" in place of the y-axis label "value". How do I achieve that? Thank you.
Here is the code I have used to get this graph.
library(ggrepel)
plots_yearly<-lapply(overall_yearly_gross_sales,function(category_table){o<-melt(category_table, id = "Year", measure = c("XXXXXX","YYYYYY","ZZZZZ"));
ggplot(o, aes(Year, value, colour = variable,label=value)) + geom_text_repel()+geom_line()+
#geom_text(aes(label=value), hjust=c(0.5), vjust=c(1))
labs(title=paste(category_table$Category,"Yearly gross sales (in $M)",sep=" "))})