rasterVis is an R package providing functions and methods to visualize the raster data.
Questions tagged [rastervis]
85 questions
0
votes
0 answers
R - error creating a violin boxplot for one raster
I'm trying to create a violin plot for a single raster (initially in GTiff).
Using the library rasterVis, the code should be very simple:
library(raster)
library(rasterVis)
rast <- raster("Temperate_WWR.tif")
bwplot(rast)
The code returns the…

MerlinLutin
- 1
- 1
0
votes
1 answer
Change the zone interval in rasterVis horizonplot
I'm working with rasterVis horizonplot function and I want to change the zone interval; for example I want to show the average for every 10 latitudinal zones in the x axis. This is an example from rasterVis…

Geo-sp
- 1,704
- 3
- 19
- 42
0
votes
0 answers
Plot raster time series (rts) object with Levelplot R after coercing to raster object
I would like to display the results in a raster times series object (rts) using levelplot function in rasterVis.
Here is a short code frome rts package:
library(raster)
library(rasterVis)
library(rts)
path <- system.file("external",…

code123
- 2,082
- 4
- 30
- 53
0
votes
1 answer
rename layers stacked in histogram (rasterVis)
I have the following problem, I failed to rename the layer stack.
Here an example of my code.
###
f <- system.file("external/test.grd", package="raster")
r <- raster(f)
oo<-stack(r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r)
names(oo) <-…

rral
- 554
- 3
- 20
0
votes
0 answers
How to setup range value in levelplot (rasterVis)?
I have a NetCDF file of salinity in Indonesia water with 4 dimensions (lon, lat, depth and time), download data here: https://onedrive.live.com/redir?resid=6FFDD661570C7D0A%21177
I would like plot salinity data with the same range (minimum -…

Eko Susilo
- 250
- 2
- 15
0
votes
1 answer
How to create weekly composite from 5-consecutive day
I have a NetCDF file of salinity in Indonesia water with 4 dimensions (lon, lat, depth and time). How to create create weekly composite from my data
download data here: https://onedrive.live.com/redir?resid=6FFDD661570C7D0A%21177
output map here:…

Eko Susilo
- 250
- 2
- 15
0
votes
0 answers
colorkey within levelplot R
I would like to define color breaks, position of colorbar all within the colorkey argument. I have tried using the following:
library(raster)
library(rasterVis)
p.at =seq( 1.160766 ,3.554995 ,length.out = 17)# I have 16 colors…

code123
- 2,082
- 4
- 30
- 53
0
votes
1 answer
plot raster with discrete colors using rasterVis
I have a few rasters I would like to plot using gplot in the rasterVis package. I just discovered gplot (which is fantastic and so much faster than doing data.frame(rasterToPoints(r))). However, I can't get a discrete image to show. Normally if r is…

Dominik
- 782
- 7
- 27
-1
votes
1 answer
Plot multiple shapefiles in single page using spplot
This is how I plot multiple raster
library(raster)
x <- raster::getData('worldclim', var='tmin', res = 10)
var.list <- c("tmin1","tmin2","tmin3","tmin4")
ras.stack <- stack()
for(i in var.list){
stack.list <- stack(stack.list,…

89_Simple
- 3,393
- 3
- 39
- 94