heatmaply icon indicating copy to clipboard operation
heatmaply copied to clipboard

Is it possible to define the cell height and widht in heatmaply

Open lucanico opened this issue 3 years ago • 4 comments

not sure If this feature is available. I would like to know if it is currently possible to define cell width an height in heatmaply().

Apologies in case I missed something.

Thanks

lucanico avatar Jul 02 '21 06:07 lucanico

Can you be a bit more specific? You mean to define how big each cell of the heatmap is in pixels? This is unlikely to be doable since the heatmap sizing includes dendrograms, labels, etc, though I might be able to give you a recipe to try to figure it out in some limited cases.

alanocallaghan avatar Jul 21 '21 12:07 alanocallaghan

Thanks for your reply and sorry for not being clear enough. Yes, I’d like to define the cell size to ideally have squared cells . It would be great to have this option, but I understand it might not be possible without affecting the remaining objects visualised. Happy to give a try to whatever option is currently available (even if this might only work in specific cases). Thanks for your help, much appreciated

From: Alanocallaghan @.> Sent: Wednesday, 21 July 2021 9:36 PM To: talgalili/heatmaply @.> Cc: Luca Nicolotti @.>; Author @.> Subject: Re: [talgalili/heatmaply] Is it possible to define the cell height and widht in heatmaply (#267)

Can you be a bit more specific? You mean to define how big each cell of the heatmap is in pixels? This is unlikely to be doable since the heatmap sizing includes dendrograms, labels, etc, though I might be able to give you a recipe to try to figure it out in some limited cases.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://hes32-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2ftalgalili%2fheatmaply%2fissues%2f267%23issuecomment%2d884137588&umid=39468fae-352a-4162-8986-2f46051a74e5&auth=d3ccb22c4dd7468f120c14aa7ed75b16828dd8ce-8baa129f96b8acb1040db1e28dbb6a865f82fa63, or unsubscribehttps://hes32-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fAHDXF2GWQ45HBXTF75NRCO3TY2Z3HANCNFSM47WDJOIA&umid=39468fae-352a-4162-8986-2f46051a74e5&auth=d3ccb22c4dd7468f120c14aa7ed75b16828dd8ce-3f8822ea0a952f597b0dbbc557aa60a4f04edea8.

Dr Luca Nicolotti Research Scientist

The Australian Wine Research Institute Reception +61 8 8313 6600 | Direct +61 8 83136600 Hartley Grove, cnr Paratoo Road, Urrbrae (Adelaide) SA 5064 PO Box 197, Glen Osmond SA 5064, Australia www.awri.com.au | Email disclaimer |

lucanico avatar Jul 22 '21 00:07 lucanico

Yeah unfortunately this would be really hard to do. The easiest way to do it would be something like

library(heatmaply)
heatmaply(mtcars, show_dendrogram = FALSE, hide_colorbar = TRUE, showticklabels = FALSE)

And then save with the same width and height, but even that is not going to be exact.

alanocallaghan avatar Oct 14 '21 22:10 alanocallaghan

No worries then ! thank you for your reply

From: Alanocallaghan @.> Sent: Friday, 15 October 2021 8:58 AM To: talgalili/heatmaply @.> Cc: Luca Nicolotti @.>; Author @.> Subject: Re: [talgalili/heatmaply] Is it possible to define the cell height and widht in heatmaply (#267)

Yeah unfortunately this would be really hard to do. The easiest way to do it would be something like

library(heatmaply)

heatmaply(mtcars, show_dendrogram = FALSE, hide_colorbar = TRUE, showticklabels = FALSE)

And then save with the same width and height, but even that is not going to be exact.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2ftalgalili%2fheatmaply%2fissues%2f267%23issuecomment%2d943786745&umid=60194225-c415-4407-8e6f-b6d70c3506cc&auth=e2f01b0b2bbaae5bc90801bb0b51b5d748e3c067-0075a6f5d8890cb2211ee9c0619403ca4d228a9d, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDXF2HOJCHX55N2T4E7TMDUG5KQ3ANCNFSM47WDJOIA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Dr Luca Nicolotti Research Scientist

The Australian Wine Research Institute Reception +61 8 8313 6600 | Direct +61 8 83136600 Hartley Grove, cnr Paratoo Road, Urrbrae (Adelaide) SA 5064 PO Box 197, Glen Osmond SA 5064, Australia www.awri.com.au | Email disclaimer |

lucanico avatar Oct 14 '21 22:10 lucanico