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
I was tinkering with the package functions (needed a matrix scatterplot with continuous variable color aesthetic) and saw that lowertriangle() generates the expanded dataframes for plots by growing a df inside a nested loop.
This seems inefficient and unnecessary, since we know the final dimension of the output. So I made a version of the function with memory preallocation, and it is notably faster with larger data.
The actual plotting might still take the most time, but if there is interest I'd be happy to share the code or make a PR. Thanks for the nice package!
The text was updated successfully, but these errors were encountered:
I was tinkering with the package functions (needed a matrix scatterplot with continuous variable color aesthetic) and saw that

lowertriangle()
generates the expanded dataframes for plots by growing a df inside a nested loop.This seems inefficient and unnecessary, since we know the final dimension of the output. So I made a version of the function with memory preallocation, and it is notably faster with larger data.
The actual plotting might still take the most time, but if there is interest I'd be happy to share the code or make a PR. Thanks for the nice package!
The text was updated successfully, but these errors were encountered: