Ordering x-axis on correlation heat map using ggplot

前端 未结 3 1776
盖世英雄少女心
盖世英雄少女心 2021-01-26 04:49

I am trying to create a correlation heat map using ggplot, but I cannot seem to control the order of my variables on the x or y axis. Specifally, ggplot seems to try to order t

3条回答
  •  广开言路
    2021-01-26 05:39

    For this particular example, one option would be to name your variables x01, x02, etc and then they will order correctly.

提交回复
热议问题