Questions tagged [rastervis]

rasterVis is an R package providing functions and methods to visualize the raster data.

85 questions
0
votes
0 answers

How to Remove degree (°N and °E) symbols in the levelplot axis

I am using the rasterVis package for visualizing gridded temperature data and while plotting my raster data layer using levelplot, degree North and degree East symbols appear in axis labels which I don't want to appear in my plot. Please give me…
bnpl
  • 1
  • 1
0
votes
0 answers

face='bold' of axis.text do not work and axis.line only control left and bottom in ggplot

library(terra) library(raster) library(rasterVis) f <- system.file("external/test.grd", package="raster") r <- rast(f) r rr <- project(x=r,y='epsg:4326') rr gplot(rr)+ geom_raster(aes(fill = value),na.rm=T)+ scale_fill_distiller(na.value =…
jackywang
  • 75
  • 6
0
votes
0 answers

How can i use "rasterVis" package to overlay two raster and display well?

I want to overlay two raster objects. I asked the question(Raster overlay visualization in rasterVis package: How the Significant raster images are represented as point marks?). I refer to the @thiagoveloso'answer from this(Adding stippling to…
shuaige C
  • 21
  • 5
0
votes
0 answers

Raster overlay visualization in rasterVis package: How the Significant raster images are represented as point marks?

I have two raster image: Trend Raster and Significant raster. I want to overly the significant raster to trend raster that i can show siginificant and trend at sametime. I want to draw a picture,like the below: Recently, i find the rasterVis…
shuaige C
  • 21
  • 5
0
votes
0 answers

Is there any way to modify key.arrow thickness and label (i.e. m/s) font size of a vectorplot in rasterVis package R?

I am trying to modify key.arrow features of a vectorplot in rasterVis package of R. However, as far as I understand key.arrow has only two args, i.e. label and size. When I change aspX and aspY of a vectorplot, it automatically translates the…
0
votes
0 answers

Can I "turn off" arrows where the value is 0 in vectorplot? (no currents on land)

I am trying to make a map of Guam's current field using vectorplot in the rasterVis package. When I read in my original data where the currents on "land" were NA, I got errors so I am instead using a file where velocity on land is 0. But this means…
Heidi
  • 11
  • 1
0
votes
2 answers

rasterVis:levelplot - Adjust heading names and text size

I have a raster stack that I want to plot in rasterVis:levelplot (only because there seems no simple alternative like using ggplot). However, I fail to increase the size of the text. Ideally I would like to assign names to individual "layers" before…
user303287
  • 131
  • 5
0
votes
1 answer

rastervis vectorplot directon reverse doesn't works

I'm trying to plot a vectorplot with arrows for vector fields going from lower to high values. This is the reverse direction for vectorplot function. The function has an option for this, however specifiyng reverse = T doesn't change the results. How…
0
votes
0 answers

levelplot stop working after update: error message

I've updated all the libraries in Rstudio and now, all the plot that I used to make with rasterVis::level plot are not working anymore. This is the error message that I received.. Any idea?thanks Error in (function (classes, fdef, mtable) : unable…
Micheal
  • 15
  • 8
0
votes
1 answer

Overlay Polygon layer on a raster stack qplot

I want to plot 7 TIFF files side by side using gplot and I want to overlay a polygon layer over them. I tried reading the shapefile using st_read and then using geom_sf or geom_polygon to plot it. But it didn't work. It was throwing an error…
Ray
  • 56
  • 1
  • 7
0
votes
1 answer

R rasterVis levelplot: a white line erroneously appears

I am plotting maps of atmospheric pollutant fields, or meteorological field, difference between such fields, often overlayed with orography. My fields are gridded. A white line misteriously appears, sometimes two. This seems to happen a bit…
0
votes
1 answer

How to change labels inside a density plot to a legend on the side?

I have a RasterStack with several 400MB raster files and I want to compare them among each other with the rasterVIS density function. The problem is that the labels of the plot overlap each other. Plot looks similar to this... So is it possible to…
Kilian
  • 1
  • 2
0
votes
1 answer

Fix text position in rasterVis::vectorplot

I'm trying to fix the position of some text in a rasterVis::vectorplot so that it stays in the same position even if I change the width and height of the png file. I tried using the margin parameters of par but with no luck. This is an example of…
0
votes
1 answer

How to solve error kriging with external drift in R?

I am trying to use kriging with external drift using hydrostm and hydrokrige. While, trying to interpolate, I can not interpolate well. I am using dem 30 m data. The code is following…
0
votes
0 answers

Renaming Multiple Layers of Raster Stack in Plots

I am trying to rename multiple layers (January, February, March to Jan, Feb, Mar...Dec) in the plot using rasterVis. I followed the code as mentioned below. Using the code the layers can be renamed as 1,2,3, but i am unable to rename the layers as…
Dipu
  • 123
  • 2
  • 14