-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kpPlotDensity log scaling? #156
Comments
Hi @aboyd003 It is indeed not possible to set up a log scale for kpPlotDensity. To do it right, we should probably use the log capabilities of base R and implement it through the whole lot of plotting functions, and adapt also kpAxis to reflect that. It's doable, but not in a short time frame. If you really need it now, your best option would be to create your own version of kpPlotDensity function (its only 16 lines of code) and make compute the log of the density before plotting. This should work (untested!) """ #MODIFIED CODE
} """ and then adjust the axis. If for the axis you get the maximum value from kp$latestplot... it will be already in log scale. If you compute it before plotting, then remember to take the log too. Hope this helps Bernat |
Thank you. |
Great! glad that helped!
I've added the log scale to the list of future enhancements, but much
better if you do not need to wait for me!
Bernat
El jue, 17 oct 2024 a las 14:51, AMBoyd ***@***.***>)
escribió:
… Thank you.
I used your modified function :) and used it to modify the
kpPlotBAMDensity function as well :)
—
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHAPQOX2SD3AVAFQEPDMATZ36XGNAVCNFSM6AAAAABQCTEH7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZGQ3DENJXGU>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Hi all,
Is there any method to log scale the values for the density plot? Ie I want the entire track output by kpPlotDensity to be on log scale. I read through the documentation and did not find anything referencing log scaling with respect to kpPlotDensity.
The text was updated successfully, but these errors were encountered: