私は、株価パフォーマンスのヒートマップを作成できるかどうかを確認しようとしています。これは、最大値が一方のコーナーに表示され、最小値がもう一方のコーナーに表示される次のようなものです。
http://shares.telegraph.co.uk/heatmaps/f_heatmap.php
私のデータは次のようなxtsオブジェクトです。
> AdjPrices50AvgPercent
SPY.Adjusted IWM.Adjusted DIA.Adjusted XLI.Adjusted XLB.Adjusted
2011-12-09 3.12 4.61 4.39 4.49 2.32
XLF.Adjusted XLE.Adjusted XOP.Adjusted OIH.Adjusted XLY.Adjusted
2011-12-09 2.84 3.8 5.45 0.45 3.1
XLP.Adjusted XLV.Adjusted XLU.Adjusted SMH.Adjusted QQQ.Adjusted
2011-12-09 3.41 2.63 1.86 1.99 1.2
XHB.Adjusted PPH.Adjusted XME.Adjusted GDX.Adjusted GLD.Adjusted
2011-12-09 9.46 4.41 3.73 -0.02 0.15
SLV.Adjusted USO.Adjusted MOO.Adjusted KRE.Adjusted KBE.Adjusted
2011-12-09 -1.24 7.46 0.11 5.78 2.84
XRT.Adjusted VNQ.Adjusted JNK.Adjusted HYG.Adjusted LQD.Adjusted
2011-12-09 4.32 3.12 2.08 2.35 -0.35
TLT.Adjusted TIP.Adjusted IEF.Adjusted VXX.Adjusted
2011-12-09 -0.27 0.25 0.45 -9.27
私はRggplot2の本を読んでいますが、そのようなマップを作成する方法を理解していません。私はさまざまなプロットをいじくり回しましたが、私が達成したいもののようなものは何もありません。私は助けに大いに感謝します。