Hi All,
I have created a R script visual. I want to add tooltip(hovering mouse) feature to it. But I am not able to achieve it.
Below is my R code:
require("ggplot2")
h<-ggplot(dataset, aes(x=Depth)) +
geom_line(aes(y =OB , colour = "OB")) +
geom_line(aes(y = PP, colour = "PP"))+geom_line(aes(y =FGshale , colour = "FGshale")) +
geom_line(aes(y = FGsand, colour = "FGsand"))+scale_colour_manual(values=c( "red","maroon","black","blue"))
h+coord_flip()+ scale_x_reverse()+scale_y_continuous(position = "top") +labs(x="",y="")+theme(axis.text=element_text(size=15)) +
theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(),
panel.background = element_blank(), axis.line = element_line(colour = "black"))+theme(legend.position="none")