I suggest you filter the original data frame to keep only the rows with MD > 5. In base R you can do
GT5 <- df[df$MD > 5, ]
With the dplyr package, you can do
library(dplyr)
GT5 <- filter(df, MD > 5)
You can then print the MD column of GT5 or plot its values