我在下面有以下数据框:
QUINT1 QUINT2 n
1 1 0.19
1 2 0.01
2 1 0.01
2 2 0.17
2 3 0.02
2 4 0.001
3 2 0.02
3 3 0.16
3 4 0.02
4 3 0.02
4 4 0.17
4 5 0.01
5 4 0.01
5 5 0.19
我正在尝试使用以下代码制作交互式热图:
p5 = rPlot(x = 'QUINT1', y = 'QUINT2', color = 'n', data = graphdata, type = 'tile')
p5$save("heatmap.html",standalone=TRUE)
但是,当我打开HTML图时,什么都没有显示。我收到控制台错误uncaught exception: DefinitionError: Bad specification.
,但我尝试在Firefox,Chrome和Internet Explorer中打开它时运气不佳。该图也不会显示在RStudio Viewer中。
我们将不胜感激!