laresbernardo / lares

Analytics & Machine Learning R Sidekick
https://laresbernardo.github.io/lares/
233 stars 49 forks source link

Ranked Cross-Correlations #29

Closed Craigdux closed 3 years ago

Craigdux commented 3 years ago

Hi, Great package, but trying to plot ranked cross-correlations. Plot looks fine, but how do I get negative correlations bars to go to left of zero? I see it in some of your examples. Thanks!

I have attached a small part of my graph: Capture

laresbernardo commented 3 years ago

Hi @Craigdux Glad to know it's working alright for your project. Originally, the output was designed to be as you mention: a "tornado" format plot, in which negatives grew to the left and positives to the right, arranged by absolute values from top to bottom. But, as it was too widely spread, it was harder to compare between the values and their incremental differences and that's why I plotted them all to the right. When using corr_cross you can set the plot = FALSE parameter to get the data instead of the plot. Then you can create a custom plot as you wish. You may use the original function's code as a starting point. Good luck and feel free to share your output ;)