You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you watch closely the rows are not extracted in the correct order, in this case "Sepal.Length.WITH.Petal.Width" is in position 4 when it should be in position 3. That is a problem because when plot_bivariate() creates the cor_plotlist in [line 183 of R/plot-bivariate.R](https://github.com/data-edu/tidyLPA/blob/master/R/plot-bivariate.R#L183:
It makes cor_plotlist follow the same order of variable cors , incorrectly ordering the variables and individual plots, resulting in a grid plot like the one shown above.
I don't know if it is the best approach. But my understanding of what R is doing is that it is selecting the matrix elements by columns and not by rows. This way I just transpose the matrix.
The text was updated successfully, but these errors were encountered:
I haven't seen any other ticket opened for this issue, so I'm not entirely sure if it is related to something I did wrong.
These are my inputs:
And my output is the following:
As you can see the variables repeat itself and are incorrectly ordered.
I have tracked down the error to line 37 of R/plot-bivariate.R:
The value of
cors
is the following:If you watch closely the rows are not extracted in the correct order, in this case "Sepal.Length.WITH.Petal.Width" is in position 4 when it should be in position 3. That is a problem because when
plot_bivariate()
creates thecor_plotlist
in [line 183 of R/plot-bivariate.R](https://github.com/data-edu/tidyLPA/blob/master/R/plot-bivariate.R#L183:It makes
cor_plotlist
follow the same order of variablecors
, incorrectly ordering the variables and individual plots, resulting in a grid plot like the one shown above.I made an adjustment to the line 37 of R/plot-bivariate.R:
I don't know if it is the best approach. But my understanding of what R is doing is that it is selecting the matrix elements by columns and not by rows. This way I just transpose the matrix.
The text was updated successfully, but these errors were encountered: