Minor change to plotdf() function