ggRegression: Get GIMMS3g NDVI time series data

View source: R/ggRegression.R

ggRegressionR Documentation

Get GIMMS3g NDVI time series data

Description

Get GIMMS3g NDVI time series data

Usage

ggRegression(
  data,
  vars = c("slope", "R2", "adjR2", "pValue"),
  save = FALSE,
  filename = NULL,
  colour = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F", "yellow",
    "#FF7F00", "red", "#7F0000"))(255)
)

Arguments

data

rasterStack with date information

vars

currently only takes all variables

save

specify if you want to save the plot to file or not, default = FALSE

filename

define filename if plot should be saved to file

colour

specify colour palette of ggplot2::scale_fill_gradientn()

Value

ggplot2 object

Examples

## Not run: 
library(ggmap2)
dat_v0 <- ndvi3g(extent = c(10, 30, 30, 50), version="v0", startyear=1981, 
                 endyear=1985, path="/media/matt/Data/Documents/Wissenschaft/Data/GIMMS")
ggRegression(data=dat_v0)

## End(Not run)

RS-eco/ggmap2 documentation built on Dec. 7, 2022, 2:02 a.m.