chrisadolph / tile-simcf

R packages for visualizing statistical models, with tools for counterfactual simulation
faculty.washington.edu/cadolph/software
13 stars 10 forks source link

In ropeladder, need an error message for mismatch of length of labels and length of x #25

Open chrisadolph opened 12 years ago

chrisadolph commented 12 years ago

Currently, if a user provides more labels for scenarios than there are scenarios to plot (ie, the length of labels exceeds the length of the data vector, be it x, y, top, or right), a cryptic error results (Error in validGP(list(...)) : Invalid font face).

Obviously, we want a more appropriate error, such as:

The number of labels given to ropeladder exceeds the number of datapoints to plot.