How do I make a heatmap with the Y axis labels on the left? It seems to default to the right. Do I need to make a custom axis using axis()?
How do I make a heatmap with the Y axis labels on the left?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the
heatmapfunction the positions of the axes are hard-coded. But it would be very easy to change just a single number to get it positioned on the other side. Type “heatmap” at your console and change the first argument from a 4 to a 2 in the secondaxis()call.All I changed was:
There still need to be changes in the margins to accommodate the switch. Changing the current value of 0 to 5 seemed to create adequate space in the example I was playing with from the help page:
This was my test case: