Tweaked p.df so that it allows non frameable outputs and does plotting.