0
我嘗試將座標軸添加到位圖圖R中,但未顯示這些座標軸。我使用的OS X 10.10有R 3.3.0在R中顯示位圖中的座標軸和縮放位圖圖
set.seed(0)
#Sample matrix
bitmap<-matrix(rnorm(150000,mean=1:500),nrow = 300, ncol = 500)
image(bitmap,col = RColorBrewer::brewer.pal(9,"Greys"), axes=FALSE,
useRaster = TRUE)
axis(1,at = seq(from=1000,to = 10000,length.out = 19),
labels = seq(from=1000,to = 10000,length.out = 19))
axis(2,at = seq(from=0,to = 100,length.out = 11),
labels = seq(from=0,to = 100,length.out = 11))
如何顯示與R中要求的範圍,這些所需的軸?
如何指定R中繪製的位圖的大小,無論是以像素還是以某個長度單位?
如何獨立縮放位圖的寬度和高度?
有沒有其他的R軟件包可以讓我更好地處理這些參數?
謝謝!你的回覆已經回答了我的問題。我不知道* at *的範圍是從0到1。 – addy