Making Interactive ggplot2 Plots with plotly

First load the data and make the plot with ggplot:

abundance <- read.csv("~/Desktop/McMahon-Lab/Rotation/Data/files4Elizabeth/TH00433_loc.csv")
abundance_plot <- abundance %>% ggplot(aes(x= CHROM, y= Y2005)) + geom_point(color="slateblue", size=0.5) + ggtitle("Abundance for 2005")
abundance_plot

Then make the interactive plot with a super easy plotly function:

ggplotly(abundance_plot)