五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網 會員登陸 & 注冊

R語言學習記錄:rasterVis包繪制柵格調整colorkey

2022-05-12 22:08 作者:孤獨的王大老實  | 我要投稿



1.可以選擇不繪制colorkey(默認也是F)

2.可以選擇繪制默認colorkey

3.自定義設置colorkey

自己翻譯一下:

由于rasterVis包是基于lattice的,所以colorkey的參數和lattice一樣,(具體細節(jié)可以看lattice包的levelplot函數的解釋)。

此外,在rasterVis包的levelplot函數添加了一個在lattice包的levelplot函數沒有的特點,rasterVis包的levelplot函數可以添加title參數(character),還有title.gpar參數(list)(具體細節(jié)看gpar,應用于標題文本)。

rasterVis的levelplot函數說明

OK,現在再去找lattice的文檔找一下levelplot里面的colorkey的解釋

總共這么長
  1. space:上下左右

  2. xy:位置參數,已經棄用

  3. col:顏色漸變規(guī)范,和level.colors函數的col.regions參數一樣

  4. at:數值向量。指定在哪顏色開始變化,必須必顏色向量大1

  5. tri.lower, tri.upper:邏輯或數值,控制colorbar的形狀的兩段是否是三角形還是矩形。對于默認值(NA),只有當相應的極端值分別為-Inf或Inf,并且三角形占總長度的5%時,才會發(fā)生這種情況。如果是數字和在0到0.25之間,則給出相應的分數,當指定為TRUE時,同樣為5%。

  6. labels:用于標記at值的字符向量?;蛘吒R姷氖敲枋鰳撕炋卣鞯牧斜怼4肆斜砜赡馨ńM件標簽、at、cex、col、rot、font、fontface和fontfamily

  7. title:通常是字符向量,或者是表達式,或者是控制詳細信息的list,或者是一個任意的grob(grid graphical objects)。list的詳細解釋請參見For details of how the list form is interpreted, see the entry for main in xyplot。

    generally speaking, the actual label should be specifified as the label component (which may be unnamed if it is the fifirst component), and the remaining arguments are used as appropriate in a call to textGrob.

    一般來說,實際的標簽應該指定為標簽組件(如果它是第一個組件,則可能未命名),其余的參數在對textGrob的調用中適當使用。

    Further control of the placement of the title is possible through the component title.control. In particular, if a rot component is not specifified, its default depends on the value of title.control$side (0 for top or bottom, and 90 for left or right).

    通過title.control,可以進一步控制標題的位置。特別地,如果未指定rot(逆時針旋轉角度)組件,其默認值取決于title.control中side的值

  8. title(我也不知道為什么會有兩個title component):A list providing control over the placement of a title, if specifified. Currently two components are honoured: side can take values "top", "bottom", "left", and "right", and specififies the side of the colorkey on which the title is to be placed. Defaults to the value of the "space" component. padding is a multiplier for the default amount of padding between the title and the colorkey.

    如果指定的話,它是一個列表,這個列表控制colorkey標題位置。目前有兩個component,side=上下左右,并且side還指定colorkey的標題在colorkey的哪一邊。默認值和space component的值一樣。(最后一句我不知道怎么翻譯,機翻的話就是:填充是標題和colorkey之間的默認填充量的乘積)(這段話我理解的是兩個component分別是side和padding,但是這倆我都試了,不報錯也沒反應

  9. tick.number:The approximate number of ticks desired。所需的大致tick數目(我不明白為什么會用“大約”來描述)tick是刻度的意思

  10. tck:A (scalar) multipler for tick lengths.刻度長度

  11. corner:與xy交互,尚未實現

  12. width:colorkey的寬度

  13. height:The length of key as a fraction of the appropriate side of plot.? colorkey的長度作為圖的適當部分的一部分。

  14. raster:A logical flag indicating whether the colorkey should be rendered as a raster image using grid.raster. See also panel.levelplot.raster.一個邏輯標志,指示colorkey是否應該使用grid.raster渲染為光柵圖像。另請參見panel.levelplot.raster。

  15. interpolate: Logical flag, passed to rasterGrob when raster=TRUE.

  16. axis.line: A list giving graphical parameters for the color key boundary and tick marks. Defaults to trellis.par.get("axis.line").

  17. axis.text: A list giving graphical parameters for the tick mark labels on the color key. Defaults to trellis.par.get("axis.text").

現在再去找xyplot里面的main參數的解釋



總結:真rlnm了!就擱這無窮套娃唄,寫個解釋文檔跟要了你命似的,參見這個參見那個的,rnm!

R語言學習記錄:rasterVis包繪制柵格調整colorkey的評論 (共 條)

分享到微博請遵守國家法律
德令哈市| 邛崃市| 古丈县| 诏安县| 济南市| 凤山县| 乐陵市| 新邵县| 綦江县| 岐山县| 宜川县| 和政县| 石柱| 鄯善县| 湄潭县| 错那县| 梁河县| 文山县| 华蓥市| 苗栗市| 和政县| 承德县| 克拉玛依市| 克东县| 辽宁省| 汽车| 绿春县| 岐山县| 石渠县| 延津县| 磴口县| 岚皋县| 汉川市| 阿拉善盟| 栾城县| 邻水| 柘城县| 财经| 龙里县| 萝北县| 潼南县|