Graphics Programs Reference
In-Depth Information
FIGurE 7-3
Default heatmap ordered by points per game
Maybe you want a different color scheme. Just change the
col
argument,
which is
cm.colors(256)
in the line of code you just executed. Type
?cm.colors
for help on what colors R offers. For example, you could use more heat-
looking colors, as shown in Figure 7-4.
bball_heatmap <- heatmap(bball_matrix,
Rowv=NA, Colv=NA, col = heat.colors(256), scale=”column”,
margins=c(5,10))
Search WWH ::
Custom Search