remove need for specifying dim.n in plot.risk()