slycoder / jjplot

Automatically exported from code.google.com/p/jjplot
0 stars 0 forks source link

bugs vs features in formula syntax #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Naively, I would think all of the following should work, but only one does.

> jjplot(Sepal.Length ~ Petal.Length, data=iris)
Error in rhs[[1]] : object of type 'symbol' is not subsettable
Calls: jjplot -> .formula.apply -> stopifnot

> jjplot(Sepal.Length ~ point() + Petal.Length, data=iris)
WORKS

> jjplot(Sepal.Length ~ Petal.Length + point(), data=iris)
Error in eval(expr, envir, enclos) : could not find function "point"
Calls: jjplot -> .formula.apply -> eval -> eval

The ":" and "+" operators seem naturally to be symmetric, but looking at 
?jjplot seems to imply they're not .... this seems like a potential stumbling 
block for a beginner.  If they have to be asymmetric, more error messages might 
help.

Original issue reported on code.google.com by brenocon@gmail.com on 18 Aug 2010 at 6:13

GoogleCodeExporter commented 9 years ago
how do i install this in Ubuntu. can you post a complete step by step 
instruction in 3-4 lines. i am hoping to help create a jjplot gui

Original comment by ohri2007 on 11 Apr 2011 at 7:26