briandk / granovaGG

Bob Pruzek and Jim Helmreich's implementation of Elemental Graphics for Analysis of Variance
Other
15 stars 4 forks source link

granovagg.ds plot is reversed #175

Open jbryer opened 3 years ago

jbryer commented 3 years ago

The help document states: is an n X 2 dataframe or matrix. First column defines X (intially for horzontal axis), the second defines Y.

However, when running this code it appears the first column is the Y coordinate, and the second is the X:

df <- data.frame(X = rnorm(10, 5, 1), Y = rnorm(10, 0, 1))
granovagg.ds(df)
jbryer commented 3 years ago

Line 92 of granovagg.ds has a call to ReverseXAndY which seems unnecessary.