ggplot2 – annotate outside of plot
This is now straightforward with ggplot2 3.0.0, since now clipping can be disabled in plots by using the clip = ‘off’ argument in coordinate functions such as coord_cartesian(clip = ‘off’) or coord_fixed(clip = ‘off’). Here’s an example below. # Generate data df <- data.frame(y=c(“cat1″,”cat2″,”cat3”), x=c(12,10,14), n=c(5,15,20)) # Create the plot ggplot(df,aes(x=x,y=y,label=n)) + geom_point()+ geom_text(x = … Read more