좋은 이미지() 유형의 플롯의 경우 축에 일부 라벨을 추가해야합니다. 또한 색상 범례는 색상 해석에 도움이됩니다. 내 블로그 http://menugget.blogspot.de/에는 이미지 눈금에이 눈금을 추가하는 기능이 있습니다.
years <- seq(1975,1989,2)
db <- data.frame(Dallas=c(25, 28, 27, 29, 31, 33, 35, 37),
Houston=c(33, 38, 43, 48, 53, 58, 63, 68),
Lubbock=c(28, 29, 31, 33, 35, 37, 39, 41),
Austin= c(22, 24, 26, 28, 30, 32, 34, 36),
San_Antonio= c(31, 32, 33, 34, 35, 36, 37, 38)
)
db <- as.matrix(db)
#plot
layout(matrix(c(1,2), nrow=1, ncol=2), widths=c(4,1), heights=c(4))
layout.show(2)
par(mar=c(5,5,1,1))
image(x=years, z=db, yaxt="n")
axis(2, at=seq(0,1,,dim(db)[2]), labels=colnames(db))
#image.scale from http://menugget.blogspot.de/2011/08/adding-scale-to-image-plot.html
par(mar=c(5,0,1,5))
image.scale(db, horiz=FALSE, yaxt="n", xaxt="n", xlab="", ylab="")
axis(4)
mtext("temp", side=4, line=2)
box()
참조 이러한 링크 : http://stackoverflow.com/questions/7747991/geographical-heat-map-in 아래 예 menugget에서 image.scale 기능을로드 한 후 (이다 -r http://stackoverflow.com/questions/8421536/a-true-heat-map-in-r http://stackoverflow.com/questions/10198228/heat-map-or-density-map-in-r http://stackoverflow.com/questions/8161014/custom-heat-map-in-r. 그러면 SO에서 '[r] heat map'을 검색 할 때 처음 몇 개가됩니다. –
@PaulHiemstra 중복 된 것으로 보이지만, 그러면 그 대답은 그 질문들에 드문 드문 있지만, 모든 정보가 그곳에있는 것처럼 보입니다. 맞습니까? –
[그림을 그릴 수 있습니다. 위 또는 아래 삼각 행렬에 대한 히트 맵] (http://stackoverflow.com/questions/6883618/plotting-a-heat-map-for-an-upper-or-lower-triangular-matrix) –