library(rasterVis)
## Loading required package: raster
## Loading required package: sp
## Loading required package: lattice
## Loading required package: latticeExtra
library(raster)
library(rgdal)
## rgdal: version: 1.5-16, (SVN revision 1050)
## Geospatial Data Abstraction Library extensions to R successfully loaded
## Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
## Path to GDAL shared files: C:/Users/Usuario/Documents/R/win-library/4.0/rgdal/gdal
## GDAL binary built with GEOS: TRUE
## Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
## Path to PROJ shared files: C:/Users/Usuario/Documents/R/win-library/4.0/rgdal/proj
## Linking to sp version:1.4-2
## To mute warnings of possible GDAL/OSR exportToProj4() degradation,
## use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
datos <- list.files("~/2. UNIVERSIDAD - SEMESTRE 9/MODELACION AMBIENTAL/Parcial 1/1_MODULOS/Ejercicio 2/Datos",full.names = TRUE,pattern = ".tif$")
precipitacion <- stack(datos) # Crear una Compilacion
plot(precipitacion[[1:12]])
levelplot(precipitacion)
levelplot(precipitacion, par.settings = RdBuTheme)
histogram(precipitacion)
densityplot(precipitacion)
bwplot(precipitacion)
You can also embed plots, for example: