ProjectMOSAIC / ggformula

Provides a formula interface to 'ggplot2' graphics.
Other
39 stars 11 forks source link

Add helpful error message if dist is not a string in gf_dist() #133

Closed rpruim closed 5 years ago

rpruim commented 5 years ago

I'm thinking something like this:

gf_dist()
## Error in gf_dist() : You must specify a distribution.
gf_dist(dist = dbinom)
## Error in gf_dist(dist = dbinom) : 
##   `dist' must be a string naming a distribution; don't forget the quotes.