I have been trying to identify extreme values in a R ggplot2
.
Is there any way to have a plot where besides the point (or instead of it) representing the values, it also shows the index? Or any other thing that allows you to quickly identify it?
The closest thing I found was with the identify()
function, but it didn't work very well for me.
Any recommendations?
I'll give a basic ggplot plot:
df = data.frame(x = runif(10,0,1), y = runif(10,0,1))
ggplot(df, aes(x,y)) +
geom_point(col="red") + theme_bw()