I have a simple issue in interactive heatmap in R. I couldn't figure out how to increase margins (distance between x and y labels with main plot) in heatmaply?
I want to add a little bit of space in ylab (province) from heatmap. Could anybody help me?
You can change the margins with
heatmaplyby usingmarginsSince you did not provide any code in your question, I will use an example plot using
mtcarsand changing the y-axis marginsIf you want to move the y-axis labels away from the graph, then that will be trickier. Currently, there doesn't appear to be a way to do this, however, here is a workaround. There is currently now way to move the y-axis labels in
heatmaply. Overall, this is a poor workaround but it appears to be the best solution as of right now.Overall,
plotlyhas some great features however it lacks in tuneability.heatmaplyhas even fewer features thanplotlyso it makes it even harder to tune your graph the way you want to.