Fix plotting of data frame objects