問題タブ [rastervis]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1080 参照

r - R プロットのラスター カラースキームが全範囲ではありません

Rcolorbrewer パッケージから取得した定義済みの配色でラスターをプロットしようとしていますが、これまでのところ問題はありません。ラスターの値の範囲は 0 から 1 で、NA はありません。

ここに画像の説明を入力

ClassInt パッケージを使用して計算する分位点ブレークを含めようとしています。

誤って、plot() は配色を値範囲の 50% にのみ適用し、残りは白のままです。

ここに画像の説明を入力

私は何を間違っていますか?

0 投票する
1 に答える
224 参照

r - Out of bound colour scale plot in raster

I have a raster and I want to plot it using image(). So far, I plotted the raster with my own color scale col.

#xA;

This looks like

image.

Now, I want to plot the all the values higher than the value 2 as "darkred" (initial color from my color scale)

I found a similar post and tried the same

#xA;

However, I got some error message. It would be helpful if anyone can help me with this.